Merge pull request #1006 from nasa/open861

[Tables] Recalculate column dimensions on resize
This commit is contained in:
Victor Woeltjen 2016-06-09 10:21:05 -07:00
commit 0263237b2c
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<div class="l-view-section scrolling" style="overflow: auto;">
<div class="l-view-section scrolling" style="overflow: auto;" mct-resize="resize()">
<table class="sizing-table">
<tbody>
<tr>

View File

@ -76,6 +76,12 @@ define(
*/
$scope.$on('add:row', this.addRow.bind(this));
$scope.$on('remove:row', this.removeRow.bind(this));
/*
* Listen for resize events to trigger recalculation of table width
*/
$scope.resize = this.setElementSizes.bind(this);
}
/**