Skip to content

Commit

Permalink
Merge pull request #713 from nasa-gibs/module-loaders-modal-fix
Browse files Browse the repository at this point in the history
Fix toolbar modal positioning
  • Loading branch information
ZachTRice authored Jan 22, 2018
2 parents dd66402 + 7620050 commit 7eb6ac1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions web/js/image/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
8 changes: 4 additions & 4 deletions web/js/link/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
Expand Down
1 change: 1 addition & 0 deletions web/js/ui/ui.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 7eb6ac1

Please sign in to comment.