PDA

View Full Version : [OPEN] [4.0.5] Creating LoadMask with a DOM node as the "el" config throws an error on show



chinabuffet
5 Aug 2011, 6:20 AM
The API docs on LoadMask's constructor say the following for the "el" parameter:



el : Mixed
The element, element ID, or DOM node you wish to mask.


Also, may be a Component who's element you wish to mask. If a Component is specified, then the mask will be automatically sized upon Componenr resize, and the message box will be kept centered.


If I actually do create a LoadMask passing in a dom node, it throws an error complaining something not having a "translatePoints" method. Example:



Ext.onReady(function() {
var loadMask = new Ext.LoadMask(document.body);

loadMask.show();
});


But if I change the document.body to Ext.getBody(), it works.

Animal
5 Aug 2011, 6:46 AM
Fixing for 4.0.6