Commit 48510559cee110a6f2a9f2c03e1859ed67fea04b
1 parent
78a8b6bd
fix: page size not change on platform happend change
Showing
1 changed file
with
0 additions
and
4 deletions
... | ... | @@ -4241,8 +4241,6 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { |
4241 | 4241 | const pageSizeControl = PageSetupDialog.getFormats |
4242 | 4242 | PageSetupDialog.getFormats = function () { |
4243 | 4243 | if (platform === 'phone') { |
4244 | - pageFormat.width = 415 | |
4245 | - pageFormat.height = 737 | |
4246 | 4244 | return [ |
4247 | 4245 | { key: 'iPhone 8', title: 'iPhone 8', format: new mxRectangle(0, 0, 375, 667) }, |
4248 | 4246 | { key: 'iPhone 8 Plus', title: 'iPhone 8 Plus', format: new mxRectangle(0, 0, 415, 737) }, |
... | ... | @@ -4260,8 +4258,6 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { |
4260 | 4258 | { key: 'custom', title: mxResources.get('custom'), format: null } |
4261 | 4259 | ] |
4262 | 4260 | } |
4263 | - pageFormat.width = 1920 | |
4264 | - pageFormat.height = 1080 | |
4265 | 4261 | return pageSizeControl.apply(this, arguments) |
4266 | 4262 | } |
4267 | 4263 | Editor.configurationName = response.configurationName + ".drawio"; | ... | ... |