1. #1
    Sencha User alexbariv's Avatar
    Join Date
    May 2009
    Location
    Mérida, Venezuela
    Posts
    67
    Vote Rating
    2
    alexbariv is on a distinguished road

      0  

    Question 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.

  2. #2
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    Hi, u can sent the code of your window.

  3. #3
    Sencha User alexbariv's Avatar
    Join Date
    May 2009
    Location
    Mérida, Venezuela
    Posts
    67
    Vote Rating
    2
    alexbariv is on a distinguished road

      0  

    Default


    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();
    
    }

  4. #4
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    Hello
    I tested this code and the result is in the attachments
    Code:
    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();
    may be the error is in the form
    Attached Images

  5. #5
    Sencha User alexbariv's Avatar
    Join Date
    May 2009
    Location
    Mérida, Venezuela
    Posts
    67
    Vote Rating
    2
    alexbariv is on a distinguished road

      0  

    Question


    This is the form code:

    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);
    Could be the theme?

  6. #6
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    I agree with you, I think it is related to the theme of windows
    Attached Images

Thread Participants: 1