Commit d1e3f6ea authored by Alexander Yuzhin's avatar Alexander Yuzhin

[DE mobile] Fix bug 34020

parent e521671c
......@@ -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',
......
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