Fix the position of the inbetween inserter#40919
Conversation
|
Size Change: +9 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
creativecoder
left a comment
There was a problem hiding this comment.
Confirming that this fixes the issue described by Automattic/wp-calypso#63279
Thanks @youknowriad !
|
Thanks @youknowriad! |
|
My query block just stopped filtering properly by category. Any chance it's related to this fix? |
|
@Diachrony no, not possible. maybe @ntsekouras would know about any recent Query block changes, otherwise feel free to create an issue with all the details. |
|
@youknowriad Thanks. I found the issue. #41067 Looks like it might just be a 13.2 thing and wordpress.com happened to adopt the update last night so I thought it might be the 13.2.1 release given the timing. |
That sounds right -- WordPress.com updated from 13.1 to 13.2.1 to include this inserter fix before release :) |
closes #40738
What?
After #40441 there was a subtle change in the in-between inserter popover: the height of the popover content changed from "0" to the actual real height (the available space) (because It was absolute positioned). I think the new behavior is better but it also triggered the automatic direction flipping for the popover if there were no available space. This PR fixes it by forcing the "position" of the popover.
Testing Instructions
1- Insert some content in a new post
2- Insert a spacer with a vw based height
3- Insert some content after the spacer
4- The in-between inserter should always show in the right position (between blocks and not on top of blocks).