Browse Source

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

Move settings bar below element if at very top [TWEAK]
master
melohagan 5 years ago
committed by GitHub
parent
commit
86218a1002
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/client/src/components/preview/SettingsBar.svelte

2
packages/client/src/components/preview/SettingsBar.svelte

@ -67,7 +67,7 @@
}
//If element is at the very top of the screen, put the bar below the element
if (elBounds.top < elBounds.height) {
if (elBounds.top < elBounds.height && elBounds.height < 80) {
newTop = elBounds.bottom + verticalOffset
}

Loading…
Cancel
Save