Results 1 to 2 of 2

Thread: getBox() for not visible windows

  1. #1
    Ext User
    Join Date
    Nov 2007
    Posts
    10
    Vote Rating
    0
      0  

    Default getBox() for not visible windows

    When I call getBox() on window that is not visible I am getting {x:0, y:0, width:0, height:0}. Is it expected? How can I get real dimensions and offset?

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,608
    Vote Rating
    59
      0  

    Default

    It depends on the hideMode of the Window.

    If it is "display" then it will not have dimensions.

    If it is "visbility" then it will have dimensions.

    Check /examples/window/hello.html in your Ext installation. That uses hideMode: 'visibility', and its box is always available.

Posting Permissions

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