-
7 Mar 2011 12:43 PM #1
Combobox will be shrinked, whe
Combobox will be shrinked, whe
Hi
I have problem with shrinking combobox, when using Tab panels, and toggling item's readOnly attribute.
Here is use case for code sample:
1) Activate first and second tab: both comboboxes will look correct
2) Activate first tab, click 'Remove readonly' button
3) Check second tab: combobox is shrinked
Screenshot:
combo.png
Code:new Ext.Window({ width: 300, height: 300, layout: 'fit', items: [{ xtype: 'tabpanel', items: [{ title: 'first', layout: 'form', items: [{ xtype: 'combo', anchor: '90%', fieldLabel: 'Test 1', id: 'c1', readOnly: true }] }, { title: 'second', layout: 'form', items: [{ xtype: 'combo', anchor: '90%', fieldLabel: 'Test 2', id: 'c2', readOnly: true }] }] }], bbar: [{ text: 'Remove readonly', handler: function() { Ext.getCmp('c1').setReadOnly(false); Ext.getCmp('c2').setReadOnly(false); } }, { text: 'Set readonly', handler: function() { Ext.getCmp('c1').setReadOnly(true); Ext.getCmp('c2').setReadOnly(true); } }] }).show();
-
4 Apr 2012 7:50 PM #2
I am facing same problem. Anyone can advice what is wrong in config?
-
10 May 2012 3:14 AM #3
You should use "width" config of combo rather than "anchor" config.
You should use "width" config of combo rather than "anchor" config.
Hi ,
You should use the "width" config for combo like:
Hope this code will work for you.Code:items: [{ title: 'first', layout: 'form', items: [{ xtype: 'combo', width:100, fieldLabel: 'Test 1', id: 'c1', readOnly: true }] }, { title: 'second', layout: 'form', items: [{ xtype: 'combo', width:100, fieldLabel: 'Test 2', id: 'c2', readOnly: true }] }]sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
(IE) Items in FitLayout and HBoxLayout Container are not Shrinked.
By amamsoft in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 3 Dec 2010, 2:55 AM -
[OPEN-1171] ComboBox Selected item is lost when ComboBox loses input focus (blur)
By Daniil in forum Ext 3.x: BugsReplies: 3Last Post: 6 Sep 2010, 12:36 PM -
[CLOSED] Shrinked toolbar buttons
By ddanny in forum Ext GWT: Bugs (2.x)Replies: 2Last Post: 15 Apr 2010, 5:52 AM -
Combobox dropdown list with less width that the ne defined by the combobox [SOLVED]
By luisparada in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 4 Feb 2010, 6:19 AM -
[SOLVED (with Observations)] Combobox + Store from MySQL + Linked combobox + Filter
By kamiarc in forum Ext 2.x: Help & DiscussionReplies: 10Last Post: 17 Apr 2009, 12:30 AM


Reply With Quote