mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 05:38:12 +00:00
[Fixed Position] Add specs for drop
Add specs related to positioning of objects based on drop position, WTD-877.
This commit is contained in:
@ -84,6 +84,8 @@ define(
|
||||
|
||||
// Position a panel after a drop event
|
||||
function handleDrop(e, id, position) {
|
||||
// Ensure that configuration field is populated
|
||||
$scope.configuration = $scope.configuration || {};
|
||||
// Make sure there is a "panels" field in the
|
||||
// view configuration.
|
||||
$scope.configuration.panels =
|
||||
@ -100,6 +102,8 @@ define(
|
||||
if ($scope.commit) {
|
||||
$scope.commit("Dropped a frame.");
|
||||
}
|
||||
// Populate template-facing position for this id
|
||||
populatePosition(id);
|
||||
}
|
||||
|
||||
// Position panes when the model field changes
|
||||
|
Reference in New Issue
Block a user