Commit db9949d4 by Torkel Ödegaard

Fixes #291, row height correction bug fixed

parent f36d9133
...@@ -125,12 +125,17 @@ function (angular, app, _) { ...@@ -125,12 +125,17 @@ function (angular, app, _) {
type : type type : type
}; };
if (!$scope.row.height) { function fixRowHeight(height) {
$scope.row.height = "200px"; if (!height) {
return '200px';
} }
else if($scope.row.height.indexOf('px') === -1) { if (!_.isString(height)) {
$scope.row.height = $scope.row.height + 'px'; return height + 'px';
} }
return height;
}
$scope.row.height = fixRowHeight($scope.row.height);
}; };
/** @scratch /panels/2 /** @scratch /panels/2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment