[DE mobile] Fix bug 34020
This commit is contained in:
parent
e521671c13
commit
d1e3f6ea3d
|
@ -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([
|
||||||
},
|
},
|
||||||
|
|
||||||
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([
|
||||||
_isPortrait = isPortrait;
|
_isPortrait = isPortrait;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
unknownText: 'Unknown',
|
unknownText: 'Unknown',
|
||||||
txtLoading : 'Loading...',
|
txtLoading : 'Loading...',
|
||||||
notcriticalErrorTitle : 'Warning',
|
notcriticalErrorTitle : 'Warning',
|
||||||
|
|
Loading…
Reference in a new issue