Merge pull request #772 from danbramall/dev-v7

Rounds grid widths to 8 decimal places (like Bootstrap)
This commit is contained in:
Shannon Deminick
2015-09-01 11:13:13 +02:00
4 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ angular.module("umbraco")
};
$scope.percentage = function(spans){
return ((spans / $scope.columns) * 100).toFixed(1);
return ((spans / $scope.columns) * 100).toFixed(8);
};
$scope.toggleCollection = function(collection, toggle){

View File

@@ -19,7 +19,7 @@ function RowConfigController($scope) {
};
$scope.percentage = function(spans) {
return ((spans / $scope.columns) * 100).toFixed(1);
return ((spans / $scope.columns) * 100).toFixed(8);
};
$scope.toggleCollection = function(collection, toggle) {

View File

@@ -424,7 +424,7 @@ angular.module("umbraco")
};
$scope.percentage = function (spans) {
return ((spans / $scope.model.config.items.columns) * 100).toFixed(1);
return ((spans / $scope.model.config.items.columns) * 100).toFixed(8);
};

View File

@@ -161,7 +161,7 @@ angular.module("umbraco")
};
$scope.percentage = function(spans){
return ((spans / $scope.model.value.columns) * 100).toFixed(1);
return ((spans / $scope.model.value.columns) * 100).toFixed(8);
};
$scope.zeroWidthFilter = function (cell) {