mirror of
https://github.com/nasa/openmct.git
synced 2025-06-12 20:28:14 +00:00
[Layout] Update raw positions on drop
When handling a drop into the layout, store the panel's new position to the LayoutController's internal table of raw positions (in addition to writing it to the configuration.) Avoids https://github.com/nasa/openmctweb/issues/384
This commit is contained in:
@ -85,6 +85,8 @@ define(
|
||||
$scope.commit("Dropped a frame.");
|
||||
}
|
||||
// Populate template-facing position for this id
|
||||
self.rawPositions[id] =
|
||||
$scope.configuration.panels[id];
|
||||
self.populatePosition(id);
|
||||
// Layout may contain embedded views which will
|
||||
// listen for drops, so call preventDefault() so
|
||||
|
Reference in New Issue
Block a user