summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-26 11:01:28 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-26 11:01:28 -0400
commitb58bdad53cf0437b4dc1ed13c0adacf2702df58b (patch)
tree8ea5d5117e175cc059a65cc4d8b9be334372e822 /www/js/app.js
parent505c82bd57ac67b6aa9347073f58367be565327b (diff)
#339 - row sizes scaled to text scale factor
Former-commit-id: 3c1cc2b4c617591aa74a6315de615dc194d1aa0f
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/www/js/app.js b/www/js/app.js
index eb254aa8..1c366c41 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1,6 +1,6 @@
/* jshint -W041 */
/* jslint browser: true*/
-/* global cordova,StatusBar,angular,console,alert,PushNotification, moment ,ionic, URI,Packery, ConnectSDK, CryptoJS, ContactFindOptions, localforage,$, Connection*/
+/* global cordova,StatusBar,angular,console,alert,PushNotification, moment ,ionic, URI,Packery, ConnectSDK, CryptoJS, ContactFindOptions, localforage,$, Connection, MobileAccessibility */
// For desktop versions, this is replaced
// with actual app version from config.xml by the
@@ -1097,11 +1097,19 @@ angular.module('zmApp', [
//---------------------------------------------------------------------
// called when device is ready
//---------------------------------------------------------------------
+
+ function getTextZoomCallback(tz)
+ {
+ $rootScope.textScaleFactor = parseFloat(tz+"%") / 100.0;
+ NVRDataModel.debug ("text zoom factor is " + $rootScope.textScaleFactor);
+ }
$ionicPlatform.ready(function () {
-
+ $rootScope.textScaleFactor = 1.0;
+ MobileAccessibility.getTextZoom(getTextZoomCallback);
+
$rootScope.db = null;
$rootScope.runMode = NVRDataModel.getBandwidth();