From d1e3f6ea3dcffb30f756559cdcc41b7c4906cd28 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 20 Feb 2017 11:19:12 +0300 Subject: [PATCH] [DE mobile] Fix bug 34020 --- apps/documenteditor/mobile/app/controller/Settings.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/Settings.js b/apps/documenteditor/mobile/app/controller/Settings.js index 172f2c086..8a67713e1 100644 --- a/apps/documenteditor/mobile/app/controller/Settings.js +++ b/apps/documenteditor/mobile/app/controller/Settings.js @@ -57,7 +57,7 @@ define([ infoObj, modalView, _isPortrait = false, - _pageSizesIndex = -1, + _pageSizesIndex = 0, _pageSizesCurrent = [0, 0], txtCm = Common.Utils.Metric.getMetricName(Common.Utils.Metric.c_MetricUnits.cm), _pageSizes = [ @@ -359,6 +359,10 @@ define([ }, onApiPageSize: function(w, h) { + if (!_isPortrait) { + var tempW = w; w = h; h = tempW; + } + if (Math.abs(_pageSizesCurrent[0] - w) > 0.01 || Math.abs(_pageSizesCurrent[1] - h) > 0.01) { _pageSizesCurrent = [w, h]; @@ -377,7 +381,6 @@ define([ _isPortrait = isPortrait; }, - unknownText: 'Unknown', txtLoading : 'Loading...', notcriticalErrorTitle : 'Warning',