1. #1
    Ext User
    Join Date
    Nov 2007
    Posts
    10
    Vote Rating
    0
    Robert Sayfullin is on a distinguished road

      0  

    Default getBox() for not visible windows

    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,507
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      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.

Thread Participants: 1