From: Matti Tahvonen Date: Thu, 8 Jan 2009 13:59:29 +0000 (+0000) Subject: fixes #2424, our iView is nosdays positioned -> no calculations needed anymore. Now... X-Git-Tag: 6.7.0.beta1~3386 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f15c0dcd948f01d8bceef61c1c8cfd607f5e9353;p=vaadin-framework.git fixes #2424, our iView is nosdays positioned -> no calculations needed anymore. Now position can also be set in theme. svn changeset:6460/svn branch:trunk --- diff --git a/WebContent/ITMILL/themes/default/common/common.css b/WebContent/ITMILL/themes/default/common/common.css index c8266a59da..8d5ca9544d 100644 --- a/WebContent/ITMILL/themes/default/common/common.css +++ b/WebContent/ITMILL/themes/default/common/common.css @@ -248,6 +248,14 @@ input.i-modified, .i-loading-indicator-wait { background: transparent url(img/loading-indicator-wait.gif); } +.i-loading-indicator, +.i-loading-indicator-delay, +.i-loading-indicator-wait { + position: absolute; + top:6px; + right: 5px; + z-index:30000; +} /* debug dialog */ .i-debug-console { diff --git a/WebContent/ITMILL/themes/default/styles.css b/WebContent/ITMILL/themes/default/styles.css index 85c2020292..9b72dd829c 100644 --- a/WebContent/ITMILL/themes/default/styles.css +++ b/WebContent/ITMILL/themes/default/styles.css @@ -416,6 +416,14 @@ input.i-modified, .i-loading-indicator-wait { background: transparent url(common/img/loading-indicator-wait.gif); } +.i-loading-indicator, +.i-loading-indicator-delay, +.i-loading-indicator-wait { + position: absolute; + top:6px; + right: 5px; + z-index:30000; +} /* debug dialog */ .i-debug-console { diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java index 82571ab29e..19287b7f04 100755 --- a/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java @@ -504,12 +504,6 @@ public class ApplicationConnection { } DOM.setElementProperty(loadElement, "className", "i-loading-indicator"); DOM.setStyleAttribute(loadElement, "display", "block"); - final int updatedX = Window.getScrollLeft() + view.getAbsoluteLeft() - + view.getOffsetWidth() - - DOM.getElementPropertyInt(loadElement, "offsetWidth") - 5; - DOM.setStyleAttribute(loadElement, "left", updatedX + "px"); - final int updatedY = Window.getScrollTop() + 6 + view.getAbsoluteTop(); - DOM.setStyleAttribute(loadElement, "top", updatedY + "px"); // Initialize other timers loadTimer2 = new Timer() { @Override