PDA

View Full Version : [OPEN-799][3.2.rc-6407] Fileuploadfield not rendering correctly



squ3lch
29 Mar 2010, 11:29 AM
Ext version tested:


Ext 3.2.rc-6407



Adapter used:


prototype



css used:


default ext-all.css
fileuploadfield.css (stock)



Browser versions tested against:


IE7
FF3



Operating System:


WinXP Pro



Description:


A fileuploadfield in a second tab displays incorrectly. May be related to http://www.extjs.com/forum/showthread.php?t=92308, but is more general.



Test Case:



Ext.onReady(function(){

tPanel1 = new Ext.Panel({
title:'Tab1',
items: [
new Ext.ux.form.FileUploadField({
width:200
})
]
})

tPanel2 = new Ext.Panel({
title:'Tab2',
items: [
new Ext.ux.form.FileUploadField({
width:200
})
]
})

var tForm = new Ext.TabPanel({
activeTab: 0,
anchor:'-10, -10',
deferredRender:false,
defaults:{anchor:"100%"},
items: [
tPanel1,
tPanel2
]
});



var mainWindow = new Ext.Viewport({
layout:'absolute',
defaults:{x:10,y:5,anchor:"-10 -10",plain:true},
items:[
tForm
]
});

mainWindow.doLayout();

});

Jamie Avins
29 Mar 2010, 12:07 PM
You are going to need to do a layoutOnTabChange: true, but there is still an issue here. I'm looking into it.

Jamie Avins
29 Mar 2010, 2:45 PM
This is an issue with the UX. I'll have something in for 3.2.1 which will have to measure the button with offsets and cleanup the resize method.