Skip to content

Commit

Permalink
fix to not collapse headers if no data
Browse files Browse the repository at this point in the history
  • Loading branch information
garaboncias committed Aug 3, 2013
1 parent 599144d commit dafd06b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/webapp/css/lib/angular-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.angularTableHeaderTableContainer {
width: 100%;
height: 32px;
box-sizing: border-box;
}

.angularTableTableContainer {
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/js/lib/angular-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ angular.module('angular-table', [])
// must be idempotent and as such shouldn't rely on it being any specific number.
scope.$watch('ResizeWidthEvent', function() {
// pull the computed width of the scrolling container out of the dom
var scrollingContainerComputedWidth = JqLiteExtension.getComputedWidthAsFloat(iElement.next()[0]);
var scrollBarWidth = JqLiteExtension.getComputedWidthAsFloat(iElement[0]) - JqLiteExtension.getComputedWidthAsFloat(iElement.next()[0]);

iElement.css('width', scrollingContainerComputedWidth + 'px');
Instrumentation.log('headerRow', 'header width set', scrollingContainerComputedWidth + 'px');
iElement.css('paddingRight', scrollBarWidth + 'px');
Instrumentation.log('headerRow', 'header paddingRight set', scrollBarWidth + 'px');
}, true);
};
}
Expand Down

0 comments on commit dafd06b

Please sign in to comment.