1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Merge pull request #5274 from Budibase/bug/sev3/settings_bar_covering_button

Move settings bar below element if at very top
This commit is contained in:
melohagan 2022-04-06 21:09:02 +01:00 committed by GitHub
commit d109b33a57

View file

@ -66,6 +66,11 @@
newTop = deviceBottom - 44 newTop = deviceBottom - 44
} }
//If element is at the very top of the screen, put the bar below the element
if (elBounds.top < elBounds.height) {
newTop = elBounds.bottom + verticalOffset
}
// Horizontally, try to center first. // Horizontally, try to center first.
// Failing that, render to left edge of component. // Failing that, render to left edge of component.
// Failing that, render to right edge of component, // Failing that, render to right edge of component,