1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    5
    Vote Rating
    0
    stuti is on a distinguished road

      0  

    Default Not able to maximise window using Window.setmaximizable(true);

    Not able to maximise window using Window.setmaximizable(true);


    Hi,

    I am a GXT beginner.I am trying to open a window inside a layout container and below is the code for that but i need to have this window maximised on opening with a maximise button on the frame so that when i minimise using browser minimise the whole screen resize but this is not happening with the current available code .Kindly help me with this.


    int winWidth = (int) ((viewPort.getWidth() * 99.5) / 100);int winHeight = viewPort.getHeight();final Window win = new Window();
    win.setModal(
    false);win.setSize(winWidth, winHeight);win.setMaximizable(true);
    win.setResizable(true);

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Vote Rating
    88
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    That's right - setMaximizable(true) just means 'let the user maximize the window if they want'. I think instead that you want to call maximize(), which resizes it to full screen right away.

Thread Participants: 1