summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/terminal')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VView.java7
-rw-r--r--src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java6
2 files changed, 10 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VView.java b/src/com/vaadin/terminal/gwt/client/ui/VView.java
index 5d7cc18945..70b5388405 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VView.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VView.java
@@ -675,6 +675,11 @@ public class VView extends SimplePanel implements Container, ResizeHandler,
DOM.setElementProperty(getElement(), "tabIndex", "1");
RootPanel root = RootPanel.get(rootPanelId);
+ Element rootElement = root.getElement();
+ if (rootElement.getChildCount() == 1) {
+ // Remove any "v-app-loading" div
+ rootElement.getChild(0).removeFromParent();
+ }
root.add(this);
root.removeStyleName("v-app-loading");
@@ -708,7 +713,7 @@ public class VView extends SimplePanel implements Container, ResizeHandler,
}
public void focus() {
- getElement().focus();
+ getElement().focus();
}
}
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
index 5f06285b1f..a50cf3290a 100644
--- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
+++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java
@@ -1660,7 +1660,7 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
+ getDefaultTheme().replaceAll("[^a-zA-Z0-9]", "");
}
- String classNames = "v-app v-app-loading " + themeClass + " "
+ String classNames = "v-app " + themeClass + " "
+ appClass;
String divStyle = null;
@@ -1744,7 +1744,9 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements
String appId, String classNames, String divStyle, HttpServletRequest request)
throws IOException {
page.write("<div id=\"" + appId + "\" class=\"" + classNames + "\" "
- + (divStyle != null ? divStyle : "") + "></div>\n");
+ + (divStyle != null ? divStyle : "") + ">");
+ page.write("<div class=\"v-app-loading\"></div>");
+ page.write("</div>\n");
page.write("<noscript>" + getNoScriptMessage() + "</noscript>");
}