window.landwidth Property

This property returns the visible screen width (in pixels) on the device for landscape

intel.xdk.display.window.landwidth

Description:

This property is only set by a call to intel.xdk.display.lockViewportWindow. Otherwise the returned value is 0.

Example:


//detect the current visible screen width of the device for landscape
var landWidth = intel.xdk.display.window.landwidth;
             
For more complete information about compiler optimizations, see our Optimization Notice.