-
|
Hi, I have a small issue with the page manager. I want all the pages to have a fixed resolution. However on the multiple page template, once I switch to a different page, the device manager is reset to full screen (default). Please see below my code in React js: |
Beta Was this translation helpful? Give feedback.
Answered by
artf
Jul 31, 2021
Replies: 1 comment 1 reply
-
|
Try with something like this editor.on('page:select:before', (page) => {
const device = editor.getModel().getDeviceModel();
device && page.getMainFrame().set('width', device.get('width'));
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
artf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try with something like this