aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2014-03-25 17:49:15 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2014-03-25 17:49:15 +0200
commit1f4ca4cb82e0144053b8a8d5266535da6af0f21f (patch)
treef5ecf26f599e3d6c267d6bc2fe3c975ad5ff57be /client
parentca73546d736dfb41d9b25a32282fff63791bffe1 (diff)
downloadvaadin-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.java4
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