-
10 Mar 2011 10:01 AM #1Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
[FIXED][PR3] TriggerField in ToolBar width size
[FIXED][PR3] TriggerField in ToolBar width size
I have a Window with a top docked Toolbar. In it I have two DateFields (a date range to filter). The width of the first one takes the entire width. The other one is placed under it. I can specify the width of the fields and they will go next to each other as expected.
If I change them to TextFields, they are place next to each other.
vsCode:xtype : "toolbar", dock : "top", items : [ { xtype : "datefield", fieldLabel : "From" }, "-", { xtype : "datefield", fieldLabel : "To" } ]
I believe this to be a bug with Ext.layout.component.form.TriggerCode:xtype : "toolbar", dock : "top", items : [ { xtype : "textfield", fieldLabel : "From" }, "-", { xtype : "textfield", fieldLabel : "To" } ]Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Mar 2011 1:43 AM #2
This is not labeled [FIXED], so I don't know if anyone has pushed a fix to the repo which I now have....
But I cannot reproduce this here.
If I do
I getCode:w = new Ext.Window({ title: 'Test', width: 600, height: 200, dockedItems: { xtype : "toolbar", dock : "top", items : [{ xtype : "datefield", fieldLabel : "From" }, "-", { xtype : "datefield", fieldLabel : "To" }] } }); w.show()
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
13 Mar 2011 6:06 AM #3Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Just copying and pasting your code, I get this:

I have tried with my Mac OS X 10.6 with Chrome, Safari, and FirefoxMitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Mar 2011 8:01 AM #4
Do you have a doctype? in that page
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
13 Mar 2011 8:08 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Got this at the top:
Demo here:Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
http://www.simoens.org/bugs/Window%20Trigger.html
Had to refresh three times, first two I guess there was a transfer error as things were all messed up but on local it worked no problem, with the error.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Mar 2011 2:59 AM #6
It must be something which has been fixed. Because I see the problem when I run your page here. But not when I run the same code served locally with the latest ExtJS code.
I'm going to mark this as fixed, but keep an eye on it when PR4 comes out.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
16 Mar 2011 6:44 AM #7Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Just adding a note that I have tested this with PR4 and it works as expected using this code Animal provided:
Code:w = new Ext.Window({ title: 'Test', width: 600, height: 200, dockedItems: { xtype : "toolbar", dock : "top", items : [{ xtype : "datefield", fieldLabel : "From" }, "-", { xtype : "datefield", fieldLabel : "To" }] } }); w.show()Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-961] CSS bug in WebKit, when TriggerField in Toolbar
By fujirou in forum Ext 3.x: BugsReplies: 4Last Post: 25 Feb 2011, 3:18 AM -
[CLOSED] TriggerField: size of textfield wrong if trigger is hidden [GXT2.1.3]
By Fred4242 in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 1 Jul 2010, 5:41 AM -
TriggerField width problem
By Gabor Turi in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 14 May 2009, 7:17 AM -
[2.0??] TriggerField wrap width bug ?
By rd in forum Ext 2.x: BugsReplies: 2Last Post: 11 Mar 2008, 3:11 PM


Reply With Quote