From acd0fae04048a427f8c5b27cf286bacf261796bf Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Thu, 9 Jun 2016 12:33:09 +0100 Subject: [PATCH] [Tables] Recalculate column dimensions on resize. Fixes #861 --- platform/features/table/res/templates/mct-table.html | 2 +- .../features/table/src/controllers/MCTTableController.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/features/table/res/templates/mct-table.html b/platform/features/table/res/templates/mct-table.html index 7a18388455..0835b6c48d 100644 --- a/platform/features/table/res/templates/mct-table.html +++ b/platform/features/table/res/templates/mct-table.html @@ -1,4 +1,4 @@ -
+
diff --git a/platform/features/table/src/controllers/MCTTableController.js b/platform/features/table/src/controllers/MCTTableController.js index e4cfa45b23..5ccda6afe1 100644 --- a/platform/features/table/src/controllers/MCTTableController.js +++ b/platform/features/table/src/controllers/MCTTableController.js @@ -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); + } /**