diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-03-25 17:49:15 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-03-25 17:49:15 +0200 |
commit | 1f4ca4cb82e0144053b8a8d5266535da6af0f21f (patch) | |
tree | f5ecf26f599e3d6c267d6bc2fe3c975ad5ff57be /client | |
parent | ca73546d736dfb41d9b25a32282fff63791bffe1 (diff) | |
download | vaadin-framework-1f4ca4cb82e0144053b8a8d5266535da6af0f21f.tar.gz vaadin-framework-1f4ca4cb82e0144053b8a8d5266535da6af0f21f.zip |
Prevent resize for sorted column if not initialized (#12951)
Change-Id: I184625738f6d5d9324f957827f7f11817e311c59
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/table/TableConnector.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/table/TableConnector.java b/client/src/com/vaadin/client/ui/table/TableConnector.java index 80a84f0a19..e8b14955ed 100644 --- a/client/src/com/vaadin/client/ui/table/TableConnector.java +++ b/client/src/com/vaadin/client/ui/table/TableConnector.java @@ -303,7 +303,9 @@ public class TableConnector extends AbstractHasComponentsConnector implements getWidget().tabIndex = getState().tabIndex; getWidget().setProperTabIndex(); - getWidget().resizeSortedColumnForSortIndicator(); + if (getWidget().initializedAndAttached) { + getWidget().resizeSortedColumnForSortIndicator(); + } // Remember this to detect situations where overflow hack might be // needed during scrolling |