There was an error while loading. Please reload this page.
1 parent 7fc28dd commit 35c961eCopy full SHA for 35c961e
src/js/core/factories/GridRenderContainer.js
@@ -634,7 +634,8 @@ angular.module('ui.grid')
634
635
} else if (gridUtil.endsWith(column.width, "%")) {
636
// percentage width, set to percentage of the viewport
637
- width = parseFloat(parseInt(column.width.replace(/%/g, ''), 10) / 100 * availableWidth);
+ // round down to int - some browsers don't play nice with float maxWidth
638
+ width = parseInt(parseInt(column.width.replace(/%/g, ''), 10) / 100 * availableWidth);
639
640
if ( width > column.maxWidth ){
641
width = column.maxWidth;
0 commit comments