]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add theme class name in init to prevent delay for embedded apps (#14517)
authorArtur Signell <artur@vaadin.com>
Tue, 26 Aug 2014 18:29:04 +0000 (21:29 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 27 Aug 2014 11:36:03 +0000 (11:36 +0000)
Change-Id: I73bf41ca493f76d0a4caa82464ef3c63b3d7f055

client/src/com/vaadin/client/ui/ui/UIConnector.java

index c88fd23ecad3985774d888a55d1d9d90d6e4506a..d6f14bf15878f4c9f5ab3d5c5ba4e0430c592d6f 100644 (file)
@@ -494,7 +494,11 @@ public class UIConnector extends AbstractSingleComponentContainerConnector
         // the user
         root.getElement().setInnerHTML("");
 
+        // Activate the initial theme by only adding the class name. Not calling
+        // activateTheme here as it will also cause a full layout and updates to
+        // the overlay container which has not yet been created at this point
         activeTheme = applicationConnection.getConfiguration().getThemeName();
+        root.addStyleName(activeTheme);
 
         root.add(getWidget());