[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:
Victor Woeltjen
2015-12-08 15:04:34 -08:00
parent ed7e0d8b0a
commit 038322e9aa
2 changed files with 19 additions and 0 deletions

View File

@ -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