mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 13:48:12 +00:00
[New Edit Mode] Fixed positioning of dropped objects #386
This commit is contained in:
@ -273,12 +273,15 @@ define(
|
||||
}
|
||||
|
||||
// Position a panel after a drop event
|
||||
function handleDrop(e, id, position) {
|
||||
function handleDrop(e, id, position, editableDomainObject) {
|
||||
// Don't handle this event if it has already been handled
|
||||
// color is set to "" to let the CSS theme determine the default color
|
||||
if (e.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
if (editableDomainObject){
|
||||
$scope.setEditable(editableDomainObject);
|
||||
}
|
||||
e.preventDefault();
|
||||
// Store the position of this element.
|
||||
addElement({
|
||||
|
Reference in New Issue
Block a user