You found a bug! We've classified it as EXTJSIII-127 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    28
    Vote Rating
    0
    Chaoz is on a distinguished road

      0  

    Default Fileupload textfield will not render to correct width in non active tabpanel

    Fileupload textfield will not render to correct width in non active tabpanel


    I found this a little weird behavior.
    The textfield where the filename will be shown will not render to the correct width in the 2nd tab.
    Now, if i change deferredRender from FALSE to TRUE, it now renders properly when I select the 2nd tab.
    But I need to render and populate the other textfields in advance for other information.(I cleaned up the code and removed the other fields just to shorten the code )

    How to fix this? Is this a known bug?

    Code:
     var form2 = new Ext.FormPanel({
            url:'../whatever.php',
            method: 'POST',
            fileUpload: true,
            items: [ {
                    xtype:'tabpanel',
                    activeItem: 0,
                    border: false,
                    anchor: '100% 100%',
    
                    deferredRender: false,
    
                    items: [{
                        title: 'tab1',
                        items: [ {
                            xtype: 'fileuploadfield',
                            id: 'form-file',
                            emptyText: 'Select an image',
                            fieldLabel: 'Item Photo',
                            allowBlank: true,
                            name: 'image',
                            buttonText: '',
                            width: 200,
                            buttonCfg: {
                                iconCls: 'upload-icon'
                            }
                        }]
                    }, {
                        title: 'tab2',
                        items: [ {
                            xtype: 'fileuploadfield',
                            id: 'form2-file',
                            emptyText: 'Select an image',
                            fieldLabel: 'Item Photo',
                            allowBlank: true,
                            name: 'image',
                            buttonText: '',
                            width: 200,
                            buttonCfg: {
                                iconCls: 'upload-icon'
                            }
                        }]
                    }]
            }]
        });
    var win = new Ext.Window({
            iconCls: 'edit',
            title: "test",
            layout: 'fit',
            width: 700,
            height: 600,
            closeAction: 'close',
            modal: true,
            resizable: false,
            frame: true,
            plain: true,
            items: form2,
            buttons: [{
                text:'Update',
                handler: function() {                
    
                }
            }, {
                text: 'Reset',
                handler: function(){
    
                }
            }, {
                text: 'Cancel',
                handler: function(){
                    win.close();
                }
            }]
        });
        win.show();

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,798
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I'm going to open a bug for this.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi