From 6d6cd0df3c279f1c24ac370488a5b6993c8424d0 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Thu, 17 Dec 2015 15:56:43 +0200 Subject: [PATCH] Verify Column width after all sort related cell changes (#16597) This fixes an IE8 issue where multisorting is not shown correctly. Change-Id: Id68103f06baf9e3ae20cb2714407b467829ef1a0 --- client/src/com/vaadin/client/widgets/Grid.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 2207abe408..28c26893ef 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -5688,14 +5688,8 @@ public class Grid extends ResizeComposite implements if (SortDirection.ASCENDING == sortingOrder.getDirection()) { cellElement.addClassName("sort-asc"); - if (!sortedBefore) { - verifyColumnWidth(column); - } } else { cellElement.addClassName("sort-desc"); - if (!sortedBefore) { - verifyColumnWidth(column); - } } int sortIndex = Grid.this.getSortOrder().indexOf(sortingOrder); @@ -5705,6 +5699,10 @@ public class Grid extends ResizeComposite implements cellElement.setAttribute("sort-order", String.valueOf(sortIndex + 1)); } + + if (!sortedBefore) { + verifyColumnWidth(column); + } } /** -- 2.39.5