Skip to content

Commit 6dfed10

Browse files
ayatsaiSouthpaw17
authored andcommitted
fix row width being shorter than header
1 parent 13a1117 commit 6dfed10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core/factories/GridRenderContainer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ angular.module('ui.grid')
634634

635635
} else if (gridUtil.endsWith(column.width, "%")) {
636636
// percentage width, set to percentage of the viewport
637-
width = parseInt(parseInt(column.width.replace(/%/g, ''), 10) / 100 * availableWidth);
637+
width = parseFloat(parseInt(column.width.replace(/%/g, ''), 10) / 100 * availableWidth);
638638

639639
if ( width > column.maxWidth ){
640640
width = column.maxWidth;

0 commit comments

Comments
 (0)