|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
I can not 'move' the thread, so repost here. (perhaps one of them may be closed).
http://extjs.com/forum/showthread.php?t=28183 Hi all, This morning i upgraded my ext from version 2.0.1 to 2.0.2. When i tested my application, i got the following problem: I use the following code to create a simple upload dialog, that worked in ie / ff in ext 2.0.1, but now it does not render anymore in ff (see screen example). showUploadDialog: function(uploadurl) {
var fs = new Ext.FormPanel({
frame: false,
style:'border: none;',
waitMsgTarget: true,
fileUpload: true,
method: 'POST',
plain:true,
bodyStyle:'padding:5px;border: none;',
buttonAlign:'center',
items :[
new Ext.form.FieldSet({
style: 'border: none;',
items: [{
tabIndex: 1,
xtype:'textfield',
fieldLabel: 'Selecteer ',
name: 'file',
inputType: 'file'
}]
})
]
});
var submit = fs.addButton({
text: 'Verstuur',
handler: function(){
fs.form.submit({
url:uploadurl,
waitMsg:'Opslaan...',
success: function (result) {
//.....
}
});
}
});
var uploadForm = new Ext.Window({
resizable:true,
floating: true,
width: 425,
shadow: true,
modal: true,
height:120,
minWidth: 420,
minHeight: 150,
layout: 'fit',
title: 'Upload excel',
items: fs
});
uploadForm.show();
},
(retested in 2.0.1, then the form renders as expected). thanks. Last edited by jbr; 03-03-2008 at 07:27 AM.. Reason: bug no bug (closed) |
|
#2
|
||||
|
||||
|
A FieldSet needs autoHeight:true.
ps. Why are you even using a FieldSet? |
|
#3
|
|||
|
|||
|
The autoheight solved the problem, the fieldset probably is a leftover from another copy paste action.
Okay, closed issue then, thanks. Then this is no bug anyway i assume (sorry for the annoyance i probably coused). |
![]() |
| Thread Tools | |
|
|