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 410cfe73d2
commit 1890dfed29
1 changed files with 1 additions and 1 deletions

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.