diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-10 23:15:27 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-10 23:15:27 +1200 |
commit | e7f589516ebdca245bf01c253b44ff708f723b07 (patch) | |
tree | d225ce794ac747748822bdc73d3277bb56cfdf73 /web/app | |
parent | d479ed01a1aeb624f226bc6b91fffedea28366f1 (diff) | |
download | trackermap-server-e7f589516ebdca245bf01c253b44ff708f723b07.tar.gz trackermap-server-e7f589516ebdca245bf01c253b44ff708f723b07.tar.bz2 trackermap-server-e7f589516ebdca245bf01c253b44ff708f723b07.zip |
Check full device screen size
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/controller/Root.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 7ad8dacc2..9eef35dc0 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -28,7 +28,7 @@ Ext.define('Traccar.controller.Root', { var indicator = document.createElement('div'); indicator.className = 'state-indicator'; document.body.appendChild(indicator); - isPhone = parseInt(window.getComputedStyle(indicator).getPropertyValue('z-index'), 10); + this.isPhone = parseInt(window.getComputedStyle(indicator).getPropertyValue('z-index'), 10) !== 0; }, onLaunch: function () { @@ -67,7 +67,7 @@ Ext.define('Traccar.controller.Root', { loadApp: function() { Ext.getStore('Devices').load(); Ext.getBody().empty(); - if (isPhone) { + if (this.isPhone) { Ext.create('Traccar.view.main.MainMobile'); } else { Ext.create('Traccar.view.main.Main'); |