diff options
author | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-03-13 09:18:53 +0000 |
---|---|---|
committer | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-03-13 09:18:53 +0000 |
commit | 59826767eb12add61e1c976be1c80fd5bff26baf (patch) | |
tree | 79e47d573ba7745f43712af674e7baac11d87522 /src/com | |
parent | 3201228f110968ef54ca15822285c808f03512e2 (diff) | |
download | vaadin-framework-59826767eb12add61e1c976be1c80fd5bff26baf.tar.gz vaadin-framework-59826767eb12add61e1c976be1c80fd5bff26baf.zip |
[merge from 6.7] fixes #8505
svn changeset:23227/svn branch:6.8
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ApplicationConnection.java | 20 | ||||
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 6 |
2 files changed, 15 insertions, 11 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index e34cd0fb8c..f3444f1313 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -140,7 +140,7 @@ public class ApplicationConnection { protected boolean applicationRunning = false; - private int activeRequests = 0; + private boolean hasActiveRequest = false; /** Parameters for this application connection loaded from the web-page */ private ApplicationConfiguration configuration; @@ -358,12 +358,12 @@ public class ApplicationConnection { /** * Indicates whether or not there are currently active UIDL requests. Used - * internally to squence requests properly, seldom needed in Widgets. + * internally to sequence requests properly, seldom needed in Widgets. * * @return true if there are active requests */ public boolean hasActiveRequest() { - return (activeRequests > 0); + return hasActiveRequest; } private String getRepaintAllParameters() { @@ -521,7 +521,9 @@ public class ApplicationConnection { (new Timer() { @Override public void run() { - activeRequests--; + // TODO why? Here used to be "activeRequests--;" + // but can't see why exactly + hasActiveRequest = false; doUidlRequest(uri, payload, synchronous); } }).schedule(delay); @@ -735,7 +737,7 @@ public class ApplicationConnection { } protected void startRequest() { - activeRequests++; + hasActiveRequest = true; requestStartTime = new Date(); // show initial throbber if (loadTimer == null) { @@ -763,11 +765,11 @@ public class ApplicationConnection { checkForPendingVariableBursts(); runPostRequestHooks(configuration.getRootPanelId()); } - activeRequests--; + hasActiveRequest = false; // deferring to avoid flickering Scheduler.get().scheduleDeferred(new Command() { public void execute() { - if (activeRequests == 0) { + if (!hasActiveRequest()) { hideLoadingIndicator(); } } @@ -1404,10 +1406,6 @@ public class ApplicationConnection { makeUidlRequest(req.toString(), "", forceSync); } - private void makeUidlRequest(String string) { - makeUidlRequest(string, "", false); - } - /** * Sends a new value for the given paintables given variable to the server. * <p> diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index cae0b65a5a..c8a2be3576 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -2300,6 +2300,12 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler, // Leave room for the sort indicator captionContainerWidth -= sortIndicator.getOffsetWidth(); } + + if (captionContainerWidth < 0) { + rightSpacing += captionContainerWidth; + captionContainerWidth = 0; + } + captionContainer.getStyle().setPropertyPx("width", captionContainerWidth); |