View Full Version : [CLOSED] Masking body doesn't mask whole window - only viewable screen

10 Apr 2013, 12:35 AM
Looking around the forums I would have thought this had been fixed, but if you have a window that's larger than your screen and you call this:


You end up with a mask that only covers the visible portion of the browser window; scrolling down shows the mask stops and you see under it. Is this a bug or am I doing something wrong?

Further, running this:

new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});

Generates this message in the console:

Ext.LoadMask: LoadMask for elements has been deprecated, use Ext.dom.Element.mask & Ext.dom.Element.unmask

Why isn't this deprecation mentioned in the docs?

11 Apr 2013, 1:17 PM
Thanks for the report! I have opened a bug in our bug tracker.
We'll take a closer look at why masking document.body doesn't disable scrolling of the body.

As for LoadMask, while it doesn't explicitly say not to target elements, it does only refer to masking components. Not as glaring a hint as what is logged, but hopefully a good description of what the class is for.

23 May 2013, 1:30 AM
Little update on this. If you have a window open and then call Ext.getBody().mask(), the mask appears at a zindex value *below* the window.

Clearly this isn't correct :D