diff options
-rw-r--r-- | WebContent/VAADIN/themes/base/common/common.css | 2 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/base/styles.css | 6 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/liferay/styles.css | 6 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/reindeer/styles.css | 6 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/runo/styles.css | 6 | ||||
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VView.java | 7 | ||||
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java | 6 |
7 files changed, 28 insertions, 11 deletions
diff --git a/WebContent/VAADIN/themes/base/common/common.css b/WebContent/VAADIN/themes/base/common/common.css index 4e0747538c..27bc57dd00 100644 --- a/WebContent/VAADIN/themes/base/common/common.css +++ b/WebContent/VAADIN/themes/base/common/common.css @@ -23,6 +23,8 @@ div.v-app-loading { background-image: url(img/loading-indicator.gif); background-repeat: no-repeat; background-position: 50%; + width: 100%; + height: 100%; } .v-view { height: 100%; diff --git a/WebContent/VAADIN/themes/base/styles.css b/WebContent/VAADIN/themes/base/styles.css index 0d5e79acbf..875df0b097 100644 --- a/WebContent/VAADIN/themes/base/styles.css +++ b/WebContent/VAADIN/themes/base/styles.css @@ -1,5 +1,5 @@ -.v-theme-version:after {content:"6_5_2_dev-20110303";} -.v-theme-version-6_5_2_dev-20110303 {display: none;} +.v-theme-version:after {content:"6_5_4_dev-20110324";} +.v-theme-version-6_5_4_dev-20110324 {display: none;} /* Automatically compiled css file from subdirectories. */ .v-absolutelayout-wrapper { @@ -276,6 +276,8 @@ div.v-app-loading { background-image: url(common/img/loading-indicator.gif); background-repeat: no-repeat; background-position: 50%; + width: 100%; + height: 100%; } .v-view { height: 100%; diff --git a/WebContent/VAADIN/themes/liferay/styles.css b/WebContent/VAADIN/themes/liferay/styles.css index 115119e797..4dbf9aafff 100644 --- a/WebContent/VAADIN/themes/liferay/styles.css +++ b/WebContent/VAADIN/themes/liferay/styles.css @@ -1,5 +1,5 @@ -.v-theme-version:after {content:"6_5_2_dev-20110303";} -.v-theme-version-6_5_2_dev-20110303 {display: none;} +.v-theme-version:after {content:"6_5_4_dev-20110324";} +.v-theme-version-6_5_4_dev-20110324 {display: none;} /* Automatically compiled css file from subdirectories. */ .v-absolutelayout-wrapper { @@ -276,6 +276,8 @@ div.v-app-loading { background-image: url(../base/common/img/loading-indicator.gif); background-repeat: no-repeat; background-position: 50%; + width: 100%; + height: 100%; } .v-view { height: 100%; diff --git a/WebContent/VAADIN/themes/reindeer/styles.css b/WebContent/VAADIN/themes/reindeer/styles.css index b0c54c8ec4..e960a6abea 100644 --- a/WebContent/VAADIN/themes/reindeer/styles.css +++ b/WebContent/VAADIN/themes/reindeer/styles.css @@ -1,5 +1,5 @@ -.v-theme-version:after {content:"6_5_2_dev-20110303";} -.v-theme-version-6_5_2_dev-20110303 {display: none;} +.v-theme-version:after {content:"6_5_4_dev-20110324";} +.v-theme-version-6_5_4_dev-20110324 {display: none;} /* Automatically compiled css file from subdirectories. */ .v-absolutelayout-wrapper { @@ -276,6 +276,8 @@ div.v-app-loading { background-image: url(../base/common/img/loading-indicator.gif); background-repeat: no-repeat; background-position: 50%; + width: 100%; + height: 100%; } .v-view { height: 100%; diff --git a/WebContent/VAADIN/themes/runo/styles.css b/WebContent/VAADIN/themes/runo/styles.css index 120c4daa53..326f0525cf 100644 --- a/WebContent/VAADIN/themes/runo/styles.css +++ b/WebContent/VAADIN/themes/runo/styles.css @@ -1,5 +1,5 @@ -.v-theme-version:after {content:"6_5_2_dev-20110303";} -.v-theme-version-6_5_2_dev-20110303 {display: none;} +.v-theme-version:after {content:"6_5_4_dev-20110324";} +.v-theme-version-6_5_4_dev-20110324 {display: none;} /* Automatically compiled css file from subdirectories. */ .v-absolutelayout-wrapper { @@ -276,6 +276,8 @@ div.v-app-loading { background-image: url(../base/common/img/loading-indicator.gif); background-repeat: no-repeat; background-position: 50%; + width: 100%; + height: 100%; } .v-view { height: 100%; 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>"); } |