Ext


Go Back   Ext JS Forums > Ext JS Community Forums (2.0) > Ext 2.x: Bugs

Reply
 
Thread Tools
  #1  
Old 03-03-2008, 07:03 AM
jbr jbr is offline
Ext User
 
Join Date: Dec 2007
Posts: 9
jbr is on a distinguished road
Default [2.0.2][CLOSED] Upload form not rendering in firefox

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();
	},
Any ideas?

(retested in 2.0.1, then the form renders as expected).

thanks.
Attached Images
File Type: jpg uploadForm.JPG (11.8 KB, 15 views)

Last edited by jbr; 03-03-2008 at 07:27 AM.. Reason: bug no bug (closed)
Reply With Quote
  #2  
Old 03-03-2008, 07:11 AM
Condor's Avatar
Condor Condor is offline
Ext JS - Community Support Team
 
Join Date: Mar 2007
Location: The Netherlands
Posts: 15,377
Condor is on a distinguished road
Default

A FieldSet needs autoHeight:true.

ps. Why are you even using a FieldSet?
Reply With Quote
  #3  
Old 03-03-2008, 07:20 AM
jbr jbr is offline
Ext User
 
Join Date: Dec 2007
Posts: 9
jbr is on a distinguished road
Default

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).
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 01:01 PM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.