[Fixed Position] Add specs for drop
Add specs related to positioning of objects based on drop position, WTD-877.
This commit is contained in:
@@ -157,6 +157,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 "elements" field in the
|
||||
// view configuration.
|
||||
$scope.configuration.elements =
|
||||
@@ -173,6 +175,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
|
||||
|
||||
@@ -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