From f15c0dcd948f01d8bceef61c1c8cfd607f5e9353 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Thu, 8 Jan 2009 13:59:29 +0000 Subject: [PATCH] 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 --- WebContent/ITMILL/themes/default/common/common.css | 8 ++++++++ WebContent/ITMILL/themes/default/styles.css | 8 ++++++++ .../terminal/gwt/client/ApplicationConnection.java | 6 ------ 3 files changed, 16 insertions(+), 6 deletions(-) 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 -- 2.39.5