[PE mobile] Fix bug 42820
This commit is contained in:
parent
596683d63e
commit
1f2b093ed1
|
@ -316,12 +316,15 @@ define([
|
||||||
// API handlers
|
// API handlers
|
||||||
|
|
||||||
onApiPageSize: function(width, height) {
|
onApiPageSize: function(width, height) {
|
||||||
|
var $input = $('#page-settings-view input[name="slide-size"]');
|
||||||
|
if ($input.length > 0) {
|
||||||
for (var i = 0; i < _slideSizeArr.length; i++) {
|
for (var i = 0; i < _slideSizeArr.length; i++) {
|
||||||
if (Math.abs(_slideSizeArr[i][0] - width) < 0.001 && Math.abs(_slideSizeArr[i][1] - height) < 0.001) {
|
if (Math.abs(_slideSizeArr[i][0] - width) < 0.001 && Math.abs(_slideSizeArr[i][1] - height) < 0.001) {
|
||||||
$('#page-settings-setup-view input').val([i]);
|
$input.val([i]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_onApiDocumentName: function(name) {
|
_onApiDocumentName: function(name) {
|
||||||
|
|
Loading…
Reference in a new issue