Browse Source

Set Height limit to frame.

pull/8/head
Roman Axelrod 3 years ago
parent
commit
1a19d63192
  1. 2
      layouts/scripts/dist/index.min.js
  2. 6
      layouts/scripts/frame/editor.js

2
layouts/scripts/dist/index.min.js

File diff suppressed because one or more lines are too long

6
layouts/scripts/frame/editor.js

@ -8,7 +8,11 @@ export function setupFrameResizeListener() {
} }
const data = JSON.parse(e.data.substring(RESIZE_CODE.length)) const data = JSON.parse(e.data.substring(RESIZE_CODE.length))
previewFrame.style.height = data.height + 'px' let height = Number.parseInt(data.height)
if (height > 20000) {
height = 20000; // Limit max height.
}
previewFrame.style.height = height + 'px'
}); });
} }

Loading…
Cancel
Save