Commit fade1aca074367d876e5a9ad79af6a674ef6bb22

Authored by ww
1 parent b4fa6403

fix: different platform type set different platform default value

... ... @@ -4242,7 +4242,7 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) {
4242 4242 PageSetupDialog.getFormats = function () {
4243 4243 if (platform === 'phone') {
4244 4244 pageFormat.width = 415
4245   - pageFormat.height = 737
  4245 + pageFormat.height = 737
4246 4246 return [
4247 4247 { key: 'iPhone 8', title: 'iPhone 8', format: new mxRectangle(0, 0, 375, 667) },
4248 4248 { key: 'iPhone 8 Plus', title: 'iPhone 8 Plus', format: new mxRectangle(0, 0, 415, 737) },
... ... @@ -4260,6 +4260,8 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) {
4260 4260 { key: 'custom', title: mxResources.get('custom'), format: null }
4261 4261 ]
4262 4262 }
  4263 + pageFormat.width = 1920
  4264 + pageFormat.height = 1080
4263 4265 return pageSizeControl.apply(this, arguments)
4264 4266 }
4265 4267 Editor.configurationName = response.configurationName + ".drawio";
... ...