Closed
Description
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 use bottom: 0
for this.
When it's hidden we use bottom: -300px
(in rem). Moving the bottom down by exactly 300px
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 than 300px
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:
- Open the web app
- Shrink the window