mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 21:53:08 +00:00
[Selection] Position overlays
This commit is contained in:
parent
d79392aeaa
commit
f926bd9762
@ -1,4 +1,5 @@
|
|||||||
define(['zepto'], function ($) {
|
define(['zepto'], function ($) {
|
||||||
|
|
||||||
function OverlayManager(bodyElement) {
|
function OverlayManager(bodyElement) {
|
||||||
this.$body = $(bodyElement);
|
this.$body = $(bodyElement);
|
||||||
}
|
}
|
||||||
@ -9,8 +10,9 @@ define(['zepto'], function ($) {
|
|||||||
x = x || 0;
|
x = x || 0;
|
||||||
y = y || 0;
|
y = y || 0;
|
||||||
|
|
||||||
$container.attr('left', x + 'px');
|
$container.css('position', 'absolute');
|
||||||
$container.attr('top', y + 'px');
|
$container.css('left', x + 'px');
|
||||||
|
$container.css('top', y + 'px');
|
||||||
|
|
||||||
view.show($container[0]);
|
view.show($container[0]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user