]> source.dussan.org Git - vaadin-framework.git/commitdiff
Prevent resize for sorted column if not initialized (#12951)
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Tue, 25 Mar 2014 15:49:15 +0000 (17:49 +0200)
committerTeemu Suo-Anttila <teemusa@vaadin.com>
Tue, 25 Mar 2014 15:49:15 +0000 (17:49 +0200)
Change-Id: I184625738f6d5d9324f957827f7f11817e311c59

client/src/com/vaadin/client/ui/table/TableConnector.java

index 80a84f0a194835a68f02aacc0619e26d93e6174d..e8b14955ed990923b87965d8b007f5233218de75 100644 (file)
@@ -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