diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-17 16:38:14 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-12-17 16:38:14 -0500 |
| commit | bc284f2bf4b3abdbef509cdba48ef26569ccaa32 (patch) | |
| tree | 9120a1f7e3999b3993234aeec6dd16ceeca35b53 /www/js/app.js | |
| parent | ba6f5a401067c4a170aa2592707352b2ebb110ca (diff) | |
#570 added resize and save option
Diffstat (limited to 'www/js/app.js')
| -rwxr-xr-x | www/js/app.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js index d8c78a0d..39e17199 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -1405,6 +1405,7 @@ angular.module('zmApp', [ var checkOrientation = function () { var pixelRatio = window.devicePixelRatio || 1; + $rootScope.pixelRatio = pixelRatio; $rootScope.devWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width); $rootScope.devHeight = ((window.innerHeight > 0) ? window.innerHeight : screen.height); //console.log("********NEW Computed Dev Width & Height as" + $rootScope.devWidth + "*" + $rootScope.devHeight); @@ -1660,6 +1661,7 @@ angular.module('zmApp', [ function continueInitialInit() { console.log("continueinit"); var pixelRatio = window.devicePixelRatio || 1; + $rootScope.pixelRatio = pixelRatio; $rootScope.devWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width); $rootScope.devHeight = ((window.innerHeight > 0) ? window.innerHeight : screen.height); // for making sure we canuse $state.go with ng-click |
