PDA

View Full Version : Ext.lib.dom is null or not an object



jayachandrang
12 Sep 2011, 5:21 AM
createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('ABC');
var viewportHeight = Ext.lib.Dom.getViewportHeight();
var viewportWidth = Ext.lib.Dom.getViewportWidth();
..............................

skirtle
13 Sep 2011, 7:21 AM
That looks like something from ExtJS 3.

Perhaps this may help you?

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Element-method-getViewportHeight