CookieConsent
cannot be hidden properly on very small screens
#2336
Labels
Bug
Error or unexpected behaviors
Priority:Low
Low-impact issue that can be addressed after higher-priority tasks
p5.js version
No response
What is your operating system?
None
Web browser and version
No response
Actual Behavior
The positioning of the

CookieConsent
is always fine when it is visible, as we usebottom: 0
for this.When it's hidden we use

bottom: -300px
(in rem). Moving the bottom down by exactly300px
will hide the banner if the banner is >=300px
. This is almost always true, even on the vast majority of mobile devices. But using fixed numeric positions is prone to edge case bugs. On a very narrow screen the banner can be taller than300px
due to text wrapping. In that case, part of the banner will always be visible and it's impossible to remove this visible part.Expected Behavior
I expect it to be completely hidden regardless of screen size.
Steps to reproduce
Steps:
The text was updated successfully, but these errors were encountered: