Change: more flexible column width calculation

This commit is contained in:
Arik Fraimovich 2016-10-05 16:43:45 +03:00
parent 838c211198
commit 0d8ee9ced7

View File

@ -48,14 +48,15 @@ angular.module('redash.filters', []).
.filter('colWidth', function () {
return function (widgetWidth) {
if (widgetWidth == 0) {
if (widgetWidth === 0) {
return 0;
}
if (widgetWidth == 1) {
} else if (widgetWidth === 1) {
return 6;
} else if (widgetWidth === 2) {
return 12;
}
return 12;
}
return widgetWidth;
};
})
.filter('capitalize', function () {