PDA

View Full Version : [CLOSED] Screen Resolution



Mario
Feb 09, 2015, 5:55 PM
Is there a way to read the screen width seen from the browser through Ext.Net?

For example:


Var Space = Ext.Net.X.GetScreenWidth();

????

Tnx

geoffrey.mcgill
Feb 09, 2015, 7:05 PM
You can get the value through JavaScript:

http://docs.sencha.com/extjs/5.0/5.0.0-apidocs/#!/api/Ext.dom.Element-static-method-getViewportWidth

Hope this helps.