diff --git a/src/Umbraco.Web.UI.Client/src/less/gridview.less b/src/Umbraco.Web.UI.Client/src/less/gridview.less index 0d21573ab3..1a727cbc2a 100644 --- a/src/Umbraco.Web.UI.Client/src/less/gridview.less +++ b/src/Umbraco.Web.UI.Client/src/less/gridview.less @@ -7,7 +7,7 @@ // Sortabel // ------------------------- .usky-grid .ui-sortable-helper { - border: dashed 1px #000; + border: dashed 1px #$000; background: #ccc; opacity: 0.4; height: 50px !important; @@ -493,7 +493,7 @@ } .usky-grid .usky-control{ - margin: 30px; + margin: 15px 30px 0px 10px; padding: 5px; } diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js index 27037a5b89..0a2b310f5b 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js @@ -74,6 +74,8 @@ angular.module("umbraco") $scope.addRow = function (column, layout) { //copy the selected layout into the rows collection var row = angular.copy(layout); + $scope.initRow(row); + column.rows.push(row); }; @@ -239,8 +241,8 @@ angular.module("umbraco") var layouts = $scope.model.config.items.layouts; if(section.allowed && section.allowed.length > 0){ - return _.filter(layouts, function(layout){ - section.$allowedLayouts = _.indexOf(section.allowed, layout.name) >= 0; + section.$allowedLayouts = _.filter(layouts, function(layout){ + return _.indexOf(section.allowed, layout.name) >= 0; }); }else{ section.$allowedLayouts = layouts; diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html index ecb86ffa1f..d823806f93 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html @@ -12,7 +12,6 @@