Issue #1958💬 AnsweredOpened April 9, 2019by benvmatheson0 reactions

Device size does not take affect until selected

快速解答by benvmatheson

Looks like a workaround is setting the device manually, instead of assuming the first selection will be chosen. editor.setDevice('Device 1')

Read full answer below ↓

Question

If the default device is smaller than fullscreen, it will still load as fullscreen. Once you change devices the sizes will then be recognized. https://jsfiddle.net/benvmatheson/7b4gq1kx/1/

Answers (1)

benvmathesonApril 10, 2019

Looks like a workaround is setting the device manually, instead of assuming the first selection will be chosen. editor.setDevice('Device 1')

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.