From 55d38fcdc0f3bf3866287ecd4e1d754632b96860 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Thu, 8 Dec 2016 08:49:16 +0100 Subject: [PATCH] fix having the column spacer play a role in the column width calculation --- app/assets/stylesheets/content/_table.sass | 2 +- .../common/interactive-table/interactive-table.directive.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/content/_table.sass b/app/assets/stylesheets/content/_table.sass index c2540f3e85..ab62d5d77d 100644 --- a/app/assets/stylesheets/content/_table.sass +++ b/app/assets/stylesheets/content/_table.sass @@ -203,10 +203,10 @@ table.generic-table background: #f8f8f8 .generic-table--column-spacer + white-space: nowrap padding: 0 6px visibility: hidden height: 0px - font-size: 0px line-height: 0px .generic-table--sort-header diff --git a/frontend/app/components/common/interactive-table/interactive-table.directive.ts b/frontend/app/components/common/interactive-table/interactive-table.directive.ts index c0bf412f77..2dc375ab75 100644 --- a/frontend/app/components/common/interactive-table/interactive-table.directive.ts +++ b/frontend/app/components/common/interactive-table/interactive-table.directive.ts @@ -109,7 +109,7 @@ export class interactiveTableController { private cloneSpacer() { this.getHeadersFooters().each((i, el) => { - var element = angular.element(this); + var element = angular.element(el); var html = element.text(); var hiddenForSighted = element.find('.hidden-for-sighted').text();