Results 1 to 2 of 2

Thread: win height according to the screen height

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    83

    Default win height according to the screen height

    Hi,

    I'm using a virtual desktop and I want to limit the win height.
    If the user screen height is 800 => the win in my desktop max height is 800
    If the user screen height is 1000 => the win in my desktop max height is 1000
    If...

    I want the windows do not exceed the screen height.

    In my code, if my windows is more "height ? (sorry french)" than the desktop I get the desktop height and I set this height in my windows.

    But my code isn't optimized...

    Do you know a method to do that ?
    ExtJS allows it natively ?

    Thanks

  2. #2
    Sencha User
    Join Date
    Oct 2010
    Location
    St.Petersburg
    Posts
    40

    Default

    Try a combination if Ext.Viewport and Ext.Window

    PHP Code:
    new Ext.Viewport({
        
    layout'fit',
        
    items: [
            new 
    Ext.Window({
                
    title'Test',
                
    constraintrue,
                
    maximizabletrue,
                
    minimizabletrue,
                
    resizabletrue,
                
    draggabletrue,
                
    hiddenfalse,
                
    width400,
                
    height300
            
    })
        ]
    }); 
    Think less, write more.

Similar Threads

  1. When ext.window's height exceed the IE screen height.
    By atreeyang in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 5 Oct 2009, 5:45 AM
  2. Mask height does not fill screen when scrolling
    By Bodom78 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Nov 2008, 6:14 AM
  3. Grid height problem on increase of screen resolution.
    By john_kennedy in forum Ext 2.x: Help & Discussion
    Replies: 15
    Last Post: 6 Aug 2008, 3:37 AM
  4. The height of columns is over screen
    By kusoft.net in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 26 Feb 2008, 6:36 PM
  5. Grid height based on screen resolution
    By rarerules in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 13 Apr 2007, 6:28 PM

Posting Permissions

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