PDA

View Full Version : replacement for Ext.lib.Dom.getViewWidth()



michaelc
5 Jan 2012, 4:03 PM
trying to find the size of the view.
I use to use Ext.lib.Dom.getViewWidth() and Ext.lib.Dom.getViewHeight()

where would I find it now ?
var colWidth = Math.floor( ( Ext.lib.Dom.getViewWidth() - ( 150 + 120 ) ) /9 ) -7;

also just noted Ext.util.JSON is also missing. - nevermind on this one its Ext.JSON

skirtle
5 Jan 2012, 9:29 PM
This perhaps?

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


Ext.Element.getViewportWidth();

michaelc
6 Jan 2012, 10:18 AM
Bingo - thanks again
who was that masked man ?