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
    25
    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
    35,704
    Vote Rating
    750
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar