Fixes #291, row height correction bug fixed

This commit is contained in:
Torkel Ödegaard
2014-04-07 08:33:52 +02:00
parent f36d91336a
commit db9949d403
+10 -5
View File
@@ -125,12 +125,17 @@ function (angular, app, _) {
type : type
};
if (!$scope.row.height) {
$scope.row.height = "200px";
}
else if($scope.row.height.indexOf('px') === -1) {
$scope.row.height = $scope.row.height + 'px';
function fixRowHeight(height) {
if (!height) {
return '200px';
}
if (!_.isString(height)) {
return height + 'px';
}
return height;
}
$scope.row.height = fixRowHeight($scope.row.height);
};
/** @scratch /panels/2