[Tables] Recalculate column dimensions on resize. Fixes #861

This commit is contained in:
Andrew Henry 2016-06-09 12:33:09 +01:00
parent b0f06a2195
commit acd0fae040
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);
}
/**