Results 1 to 2 of 2

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default 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 User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •