-
21 Apr 2010 7:44 AM #1
How to remove the space between a window and a form panel?
How to remove the space between a window and a form panel?
Hi everybody.
I have a window with a form panel inside, but i got this space between both elements and don't know how to remove it. Already tried border:false, and stuff like that but nothing. The layout of the window its fit.
screen5.png
Thanks in advance for all your help.
-
21 Apr 2010 8:27 AM #2
Hi, u can sent the code of your window.
-
21 Apr 2010 8:29 AM #3
This is the code of the window ;-)
Code:function mostrarVentana(titulo,componente){ win = new Ext.Window({ title : titulo, minimizable : false, maximizable : false, resizable : false, draggable : false, border : false, modal : true, width : 400, layout :'fit', autoDestroy : true, items : componente }); win.show(); }
-
22 Apr 2010 12:03 AM #4
Hello
I tested this code and the result is in the attachments
may be the error is in the formCode:win = new Ext.Window({ title : "window", minimizable : false, maximizable : false, resizable : false, draggable : false, border : false, modal : true, width : 400, layout :'fit', autoDestroy : true, items : {title : 'test', height : 200} }); win.show();
-
22 Apr 2010 5:27 AM #5
This is the form code:
Could be the theme?Code:appAir.form.Login = Ext.extend(Ext.FormPanel, { initComponent : function() { var config = { url : remoteSrvUrl+'login.php', method : 'POST', width : 300, autoHeight : true, labelWidth : 80, frame : true, margin : '10 10 10 10', title : 'Iniciar Sesión', defaultType : 'textfield', monitorValid : true, items : [{ fieldLabel : 'Usuario', name : 'user', allowBlank : false },{ fieldLabel : 'Contraseña', name : 'passr', inputType : 'password', allowBlank : false }] }; Ext.apply(this, Ext.apply(this.initialConfig, config)); appAir.form.Login.superclass.initComponent.call(this); }, onRender:function() { appAir.form.Login.superclass.onRender.apply(this, arguments); } }); // Registramos el componente en Ext Ext.reg('appAir.form.Login', appAir.form.Login);
-
22 Apr 2010 5:58 AM #6
I agree with you, I think it is related to the theme of windows


Reply With Quote