Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix toolbar modal positioning - Change `left` position direction to `right` as per documentation - Import `jquery-ui/position` to wvui to prevent unexpected results

ZachTRice7620050f1bbb
diff --git a/web/js/image/panel.js b/web/js/image/panel.js
index c7143448b..a530819ee 100644
--- a/web/js/image/panel.js
+++ b/web/js/image/panel.js
@@ -227,8 +227,8 @@ export function imagePanel(models, ui, config) {
.attr('selected', 'selected');
wvui.positionDialog($dialog, {
- my: 'left top',
- at: 'left bottom+5',
+ my: 'right top',
+ at: 'right bottom+5',
of: ('#wv-image-button')
});
$dialog.dialog('open');
diff --git a/web/js/link/ui.js b/web/js/link/ui.js
index d15d98221..fb40f2ea7 100644
--- a/web/js/link/ui.js
+++ b/web/js/link/ui.js
@@ -193,14 +193,14 @@ export function linkUi(models, config) {
});
if (util.browser.small) {
wvui.positionDialog($dialog, {
- my: 'left top',
- at: 'left+58 bottom+5',
+ my: 'right top',
+ at: 'right-58 bottom+5',
of: '#wv-toolbar'
});
} else {
wvui.positionDialog($dialog, {
- my: 'left top',
- at: 'left bottom+5',
+ my: 'right top',
+ at: 'right bottom+5',
of: $label
});
}
diff --git a/web/js/ui/ui.js b/web/js/ui/ui.js
index 3de08fb2d..a7b8119d1 100644
--- a/web/js/ui/ui.js
+++ b/web/js/ui/ui.js
@@ -1,6 +1,7 @@
import $ from 'jquery';
import 'jquery-ui/dialog';
import 'jquery-ui/menu';
+import 'jquery-ui/position';
import loadingIndicator from './indicator';
import info from './info';
import mouse from './mouse';