Adjuts top position of settings bar when no room
This commit is contained in:
parent
410cfe73d2
commit
1890dfed29
|
@ -34,7 +34,7 @@
|
||||||
// Vertically, always render above unless no room, then render inside
|
// Vertically, always render above unless no room, then render inside
|
||||||
let newTop = elBounds.top + scrollY - verticalOffset - height
|
let newTop = elBounds.top + scrollY - verticalOffset - height
|
||||||
if (newTop < 0) {
|
if (newTop < 0) {
|
||||||
newTop = elBounds.top + scrollY + verticalOffset
|
newTop = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Horizontally, try to center first.
|
// Horizontally, try to center first.
|
||||||
|
|
Loading…
Reference in New Issue