1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

Adjuts top position of settings bar when no room

This commit is contained in:
Andrew Kingston 2021-06-17 16:23:17 +01:00
parent a1a37daa3f
commit cb425e349c

View file

@ -34,7 +34,7 @@
// Vertically, always render above unless no room, then render inside
let newTop = elBounds.top + scrollY - verticalOffset - height
if (newTop < 0) {
newTop = elBounds.top + scrollY + verticalOffset
newTop = 0
}
// Horizontally, try to center first.