[Fixed Position] Add specs for drop

Add specs related to positioning of objects based on
drop position, WTD-877.
This commit is contained in:
Victor Woeltjen
2015-02-17 10:50:02 -08:00
parent 553101100b
commit 156f053421
4 changed files with 75 additions and 5 deletions

View File

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