-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metaboxes are placed in incorrect position when switching device preview #38062
Comments
I was able to reproduce it too. |
I can still reproduce it with 5.9-RC4. |
It is also reproduced in WP5.9 Custom Post Type. |
Once the custom field overlaps the content area, we have to refresh the screen to get rid of it. This is very annoying because we have to refresh the screen when we are still in the middle of writing an article and don't want to save it. |
I can reproduce this in WordPress 5.9 with and without Gutenberg trunk. This is the default CSS when you view the post in desktop without first selecting a different preview: And this is the CSS if you switch to deskop: If I remove this height in the browser inspector tools, the meta boxes are placed correctly. I was not able to pin point where exactly the height is from: But there is a comment stating that We intentionally omit a 100% height here. I looked through useResizeCanvas but it does not set this height. Related: #33817 Pinging @jasmussen since you worked on the related issue in Safari. |
Thanks for the ping. As I recall, the Safari issue was related to a browser bug or rule interpretation. But with the steps you share I can reproduce in Chrome as well, and so it seems the right solution is to remove some of those extra properties that are applied. I'm not entirely sure if you worked on it, @ellatrix, so feel free to ignore, but I have a feeling you have an idea. |
I've moved this to the 5.9.x project to match the ticket filed on trac. |
I reproduced the issue in a new local install with no plugins and the Twenty Twenty-One (2021) theme. The behavior does not happen in WP 5.8.2, so it's a regression. It also happens with the new Twenty Twenty-Two theme. |
I can set the height to 100%, which seems to solve the problem, but I can't test on Safari 13. I'm new to mac and the installed Safari version is 15.3. There does not seem to be a safe way to downgrade? |
Adding this to my block editor styles (
|
I tested again on the latest branch after #38910 was merged, and all of the following themes work fine:
So I am closing this issue. @carolinan |
After further testing on WP 5.9.3, I can confirm that the issue has NOT been resolved in any of the themes mentioned, and no plugins installed. Step to reproduce:
|
Hi @quantumleap33, This issue has been fixed in PR #38910. I believe this PR should have been backported to 5.9.3, but my closing this issue might be the reason it was not backported. @peterwilsoncc |
The PR wasn't labeled for backporting; it is why WordPress 5.9.3 didn't include it. |
@peterwilsoncc tentatively added the label to the PR. |
It happens to me too. Astra theme and UAG blocks after WP5.9 version. |
@darkonelson Correct, the fix ix not in WordPress 5.9.3. It is in 6.0 beta. |
Thank you Carolinan for your information. |
Description
The metaboxes are stuck over the content when I change the device preview to mobile / tablet and then change it back to desktop preview again.
Step-by-step reproduction instructions
First, enabe Custom Fields metaboxes from 'options > Preferences > Panels > Custom Fields.
Once you are sure that the meta box is positioned at the bottom of the content, press the 'Preview' button, switch to 'Mobile or Tablet', and then switch again to 'Desktop' preview.
Screenshots, screen recording, code snippet
b0fb24e4135b7511f876bcc4c4ec2c21.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: