You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Site Editor: Tablet Preview cuts off bottom part of template #37708
In the Site Editor, using the Preview option to see the Tablet view cuts off the bottom part of the template being edited. This only happens with the Site Editor (rather than Template editor).
changed the title [-]Site Editor: Tablet & Mobile Preview cuts off bottom part of template[/-][+]Site Editor: Tablet Preview cuts off bottom part of template[/+]on Jan 4, 2022
Yeah I can reproduce 37708 on Chrome/Windows (1920x1080). Seems to be a simple issue of the height of the iframe.
Not an actual fix, but it seems that applying this to the iframe does the trick:
max-height: calc(100vh - 144px - 60px - 25px);
144px is the top + bottom margin of the iframe
60px is the height of .edit-site-header
25px is the height of .interface-interface-skeleton__footer
Activity
[-]Site Editor: Tablet & Mobile Preview cuts off bottom part of template[/-][+]Site Editor: Tablet Preview cuts off bottom part of template[/+]annezazu commentedon Jan 4, 2022
Updated after testing with RC1 :)
Mamaduka commentedon Jan 5, 2022
Unfortunately, I couldn't reproduce the issue. So please, let me know if I'm missing any steps.
Tested with WP 5.9 RC 1 and Gutenberg trunk.
Screencast
CleanShot.2022-01-05.at.20.32.51.mp4
annezazu commentedon Jan 5, 2022
@Mamaduka curious what browser you're using and if that makes a difference here? I was using Chrome and can still replicate today :D
Mamaduka commentedon Jan 5, 2022
Chrome/MacOS
annezazu commentedon Jan 5, 2022
From @costdev in slack:
piotrbak commentedon Jan 7, 2022
I'm also able to reproduce it on Chrome 1920x1080.
juhi123 commentedon Jan 11, 2022
I also could reproduce this issue on Mac OS Chrome.
Mamaduka commentedon Jan 13, 2022
@jasmussen, @jameskoster, do you mind having a look at this? I'm pretty sure it's an overflow issue, but I can't point my finger on it 😄
jameskoster commentedon Jan 13, 2022
Yup it's cause by this line: https://github.com/WordPress/gutenberg/blob/trunk/packages/edit-site/src/components/editor/style.scss#L35 which was added in #35974. Perhaps @kevin940726 can confirm why we need that rule and if there's an alternative approach we could try.