mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
[Tables] Recalculate column dimensions on resize. Fixes #861
This commit is contained in:
@ -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">
|
<table class="sizing-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -76,6 +76,12 @@ define(
|
|||||||
*/
|
*/
|
||||||
$scope.$on('add:row', this.addRow.bind(this));
|
$scope.$on('add:row', this.addRow.bind(this));
|
||||||
$scope.$on('remove:row', this.removeRow.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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user