LT-355: Fixing StudyListContextMenu positioning on IE 11
This commit is contained in:
parent
c25909de4c
commit
da5b7d4fc4
@ -1,4 +1,5 @@
|
|||||||
import { Template } from 'meteor/templating';
|
import { Template } from 'meteor/templating';
|
||||||
|
import { Meteor } from 'meteor/meteor';
|
||||||
import { OHIF } from 'meteor/ohif:core';
|
import { OHIF } from 'meteor/ohif:core';
|
||||||
import { $ } from 'meteor/jquery';
|
import { $ } from 'meteor/jquery';
|
||||||
|
|
||||||
@ -24,11 +25,19 @@ openStudyContextMenu = event => {
|
|||||||
dropdown.oncontextmenu = () => false;
|
dropdown.oncontextmenu = () => false;
|
||||||
|
|
||||||
$dropdownMenu.css({
|
$dropdownMenu.css({
|
||||||
|
visibility: 'hidden',
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
left: `${event.clientX}px`,
|
'z-index': 10000,
|
||||||
top: `${event.clientY}px`,
|
|
||||||
'z-index': 10000
|
|
||||||
}).bounded().focus();
|
}).bounded().focus();
|
||||||
|
|
||||||
|
// Postpone position change to allow boundaries restriction
|
||||||
|
Meteor.defer(() => {
|
||||||
|
$dropdownMenu.css({
|
||||||
|
visibility: 'visible',
|
||||||
|
left: `${event.clientX}px`,
|
||||||
|
top: `${event.clientY}px`
|
||||||
|
}).trigger('spatialChanged');
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user