Commit d1e3f6ea authored by Alexander Yuzhin's avatar Alexander Yuzhin

[DE mobile] Fix bug 34020

parent e521671c
...@@ -57,7 +57,7 @@ define([ ...@@ -57,7 +57,7 @@ define([
infoObj, infoObj,
modalView, modalView,
_isPortrait = false, _isPortrait = false,
_pageSizesIndex = -1, _pageSizesIndex = 0,
_pageSizesCurrent = [0, 0], _pageSizesCurrent = [0, 0],
txtCm = Common.Utils.Metric.getMetricName(Common.Utils.Metric.c_MetricUnits.cm), txtCm = Common.Utils.Metric.getMetricName(Common.Utils.Metric.c_MetricUnits.cm),
_pageSizes = [ _pageSizes = [
...@@ -359,6 +359,10 @@ define([ ...@@ -359,6 +359,10 @@ define([
}, },
onApiPageSize: function(w, h) { onApiPageSize: function(w, h) {
if (!_isPortrait) {
var tempW = w; w = h; h = tempW;
}
if (Math.abs(_pageSizesCurrent[0] - w) > 0.01 || if (Math.abs(_pageSizesCurrent[0] - w) > 0.01 ||
Math.abs(_pageSizesCurrent[1] - h) > 0.01) { Math.abs(_pageSizesCurrent[1] - h) > 0.01) {
_pageSizesCurrent = [w, h]; _pageSizesCurrent = [w, h];
...@@ -377,7 +381,6 @@ define([ ...@@ -377,7 +381,6 @@ define([
_isPortrait = isPortrait; _isPortrait = isPortrait;
}, },
unknownText: 'Unknown', unknownText: 'Unknown',
txtLoading : 'Loading...', txtLoading : 'Loading...',
notcriticalErrorTitle : 'Warning', notcriticalErrorTitle : 'Warning',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment