diff options
author | Artur Signell <artur@vaadin.com> | 2014-08-26 21:29:04 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-08-27 11:36:03 +0000 |
commit | 0af15f64a1143c5fa030b1837389bb4122195f77 (patch) | |
tree | edf067a3f65f2deb6204f5a6e031799d72d35464 /client | |
parent | 47afbc9b566a3d9da58b4cb3de1c9c13fca54016 (diff) | |
download | vaadin-framework-0af15f64a1143c5fa030b1837389bb4122195f77.tar.gz vaadin-framework-0af15f64a1143c5fa030b1837389bb4122195f77.zip |
Add theme class name in init to prevent delay for embedded apps (#14517)
Change-Id: I73bf41ca493f76d0a4caa82464ef3c63b3d7f055
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/ui/UIConnector.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/ui/UIConnector.java b/client/src/com/vaadin/client/ui/ui/UIConnector.java index c88fd23eca..d6f14bf158 100644 --- a/client/src/com/vaadin/client/ui/ui/UIConnector.java +++ b/client/src/com/vaadin/client/ui/ui/UIConnector.java @@ -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()); |