Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    4
    Vote Rating
    0
    mari.maasikas is on a distinguished road

      0  

    Default 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();

  2. #2
    Ext JS Premium Member
    Join Date
    Aug 2010
    Posts
    74
    Vote Rating
    0
    ajit.mankottil is on a distinguished road

      0  

    Default


    I am facing same problem. Anyone can advice what is wrong in config?

  3. #3
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default 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:
    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
                    }]
                }]
    Hope this code will work for you.
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Similar Threads

  1. (IE) Items in FitLayout and HBoxLayout Container are not Shrinked.
    By amamsoft in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 3 Dec 2010, 2:55 AM
  2. Replies: 3
    Last Post: 6 Sep 2010, 12:36 PM
  3. [CLOSED] Shrinked toolbar buttons
    By ddanny in forum Ext GWT: Bugs (2.x)
    Replies: 2
    Last Post: 15 Apr 2010, 5:52 AM
  4. Replies: 1
    Last Post: 4 Feb 2010, 6:19 AM
  5. Replies: 10
    Last Post: 17 Apr 2009, 12:30 AM

Thread Participants: 2