[Fixed Position] Fix grid size spec

Fix spec which ensures that FixedController correctly
populates background grid based on user-defined grid
size, after changes for WTD-879.
This commit is contained in:
Victor Woeltjen
2015-02-19 10:22:12 -08:00
parent 9a50f6d84d
commit 83872946bf
2 changed files with 5 additions and 0 deletions

View File

@ -30,8 +30,12 @@ define(
function refreshCellStyles() {
var x, y;
// Clear previous styles
cellStyles = [];
// Update grid size from model
gridSize = ($scope.model || {}).layoutGrid || gridSize;
for (x = 0; x < gridExtent[0]; x += 1) {
for (y = 0; y < gridExtent[1]; y += 1) {
// Position blocks; subtract out border size from w/h