From 965e5d271e3967bb28cecbcc4f1e8fc5c4570562 Mon Sep 17 00:00:00 2001 From: Chris Ball Date: Tue, 22 Mar 2016 12:24:06 -0400 Subject: [PATCH] Ensure headers are equal - properly target fixed columns vs regular columns for height calcs - call `ensureEqualHeaderHeight` on `didRenderCollection` --- addon/components/justa-table.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/components/justa-table.js b/addon/components/justa-table.js index 0f398b4..8c6ee2f 100644 --- a/addon/components/justa-table.js +++ b/addon/components/justa-table.js @@ -74,7 +74,7 @@ export default Component.extend({ if (isEmpty(fixedHeader)) { return; } - let columnHeader = this.$('.table-columns th:first-of-type'); + let columnHeader = this.$('.table-columns-wrapper:not(.fixed-table-columns-wrapper) th:first-of-type'); let maxHeight = Math.max(fixedHeader.height(), columnHeader.height()); fixedHeader.height(maxHeight); @@ -104,6 +104,7 @@ export default Component.extend({ */ didRenderCollection() { run.scheduleOnce('afterRender', this, this._sendRenderAction); + this.ensureEqualHeaderHeight(); }, /**