-
27 Aug 2008 7:48 AM #1
Anchor textfield in toolbar
Anchor textfield in toolbar
Hi all!
I have a simple question: Is it possible to use anchors for a textfield in my toolbar.
Just like this:
-----------------------------------------------------
[button][button][.........textfield............................]
-----------------------------------------------------
Any ideas?
thx 4 help!"Never run after a bus, a woman, or a cosmological
theory. There will always be another one in a few minutes."
John Archibald Wheeler
"No longer being Mastercard's ? Priceless! "
Doug Heffernan
-
27 Aug 2008 8:06 AM #2
Why would anchors be needed? Items are added left to right by default.
-
27 Aug 2008 8:12 AM #3
i tried it this way....
...didnt work. textfield has the default-width....Code:tbar:[{ tooltip:{title:'Tooltip', text:'test...'}, iconCls:'connect' },'-',{ xtype : 'textfield', value : 'something', allowBlank : false, height : 20, // anchor : '100%' }],"Never run after a bus, a woman, or a cosmological
theory. There will always be another one in a few minutes."
John Archibald Wheeler
"No longer being Mastercard's ? Priceless! "
Doug Heffernan
-
27 Aug 2008 8:35 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
27 Aug 2008 8:36 AM #5
I see, I was misunderstanding the question. Since toolbar is not a boxComponent, I am not sure if this is possible. Someone else will have to confirm.
-
27 Aug 2008 8:40 AM #6Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
Correct, one of the issues that were fixed with a ux or override.
Ext 3 fixes this (thankfully). It would be nice to see Ext 2 have this feature... but then again, take away the goodies from Ext 3, and it's impact may not be that big

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.


Reply With Quote