Fixed the brokend tests.

This commit is contained in:
Pegah Sarram
2017-08-14 16:07:52 -07:00
parent 0acf8d9edc
commit 9925c2dd38

View File

@@ -137,6 +137,9 @@ define(
$scope.configuration.panels =
$scope.configuration.panels || {};
$scope.configuration.panels[self.activeDragId] =
$scope.configuration.panels[self.activeDragId] || {};
// Store the position and dimensions of this panel.
$scope.configuration.panels[self.activeDragId].position =
self.rawPositions[self.activeDragId].position;
@@ -154,13 +157,13 @@ define(
this.gridSize = DEFAULT_GRID_SIZE;
this.$scope = $scope;
$scope.$watch("selection", function(selection) {
this.selection = selection;
}.bind(this));
// Watch for changes to the grid size in the model
$scope.$watch("model.layoutGrid", updateGridSize);
$scope.$watch("selection", function(selection) {
this.selection = selection;
}.bind(this));
// Update composed objects on screen, and position panes
$scope.$watchCollection("model.composition", refreshComposition);