diff options
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 10 |
1 files 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<T> 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<T> extends ResizeComposite implements cellElement.setAttribute("sort-order", String.valueOf(sortIndex + 1)); } + + if (!sortedBefore) { + verifyColumnWidth(column); + } } /** |