This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
FSE - Mini-Cart Drawer block does not trigger the recalculation of the gallery size while it removes the scrollbar #9635
Labels
block: mini-cart
Issues related to the Mini-Cart block.
type: bug
The issue/PR concerns a confirmed bug.
type: community contribution
Opening the mini cart drawer makes the scrollbar disappear (due to CSS): but the JS does not detect resizing (expansion of the page since the scrollbar width is reduced) so the width of the photo gallery is not recalculated and we see a piece of the next photo.
Since it moves all the elements on all pages of the website, I think adding an overflow-x:hidden to the body would be sufficient when the drawer is open. Of course, this means that one can scroll on the page, but it's not bothersome. At least, it's less bothersome than seeing the elements behind the overlay resize.
Chrome/Firefox
WP 6.2.2
WC 7.7.0
WC Blocks 10.3.0
The above screenshot does not show the entire window by personal choice
The text was updated successfully, but these errors were encountered: