Skip to content
Discussion options

You must be logged in to vote

Try with something like this

editor.on('page:select:before', (page) => {
  const device = editor.getModel().getDeviceModel();
  device && page.getMainFrame().set('width', device.get('width'));
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ubanna
Comment options

Answer selected by artf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3642 on July 31, 2021 12:36.