Merge pull request #772 from danbramall/dev-v7
Rounds grid widths to 8 decimal places (like Bootstrap)
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user