summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-10-13 14:03:10 +0300
committerVaadin Code Review <review@vaadin.com>2015-10-23 07:31:30 +0000
commit332fa13334ea81bc8d6f56985ce26233fcd6651e (patch)
tree4a986620b8883a2914a87c867e9689e461856950
parent883fa51bc9cddef014b790b8fa38db8dbc3e7bec (diff)
downloadvaadin-framework-332fa13334ea81bc8d6f56985ce26233fcd6651e.tar.gz
vaadin-framework-332fa13334ea81bc8d6f56985ce26233fcd6651e.zip
Remove scheduleDeferred calls from Escalator
Change-Id: Idfde7842fd31be4b84a1436b40eaa932b6a6c349
-rw-r--r--client/src/com/vaadin/client/widgets/Escalator.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/widgets/Escalator.java b/client/src/com/vaadin/client/widgets/Escalator.java
index 1400d63b6b..3705908dcc 100644
--- a/client/src/com/vaadin/client/widgets/Escalator.java
+++ b/client/src/com/vaadin/client/widgets/Escalator.java
@@ -1878,7 +1878,7 @@ public class Escalator extends Widget implements RequiresResize,
}
public void autodetectRowHeightLater() {
- Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
+ Scheduler.get().scheduleFinally(new Scheduler.ScheduledCommand() {
@Override
public void execute() {
if (defaultRowHeightShouldBeAutodetected && isAttached()) {
@@ -5946,7 +5946,7 @@ public class Escalator extends Widget implements RequiresResize,
public void scrollToRow(final int rowIndex,
final ScrollDestination destination, final int padding)
throws IndexOutOfBoundsException, IllegalArgumentException {
- Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ Scheduler.get().scheduleFinally(new ScheduledCommand() {
@Override
public void execute() {
validateScrollDestination(destination, padding);
@@ -6017,7 +6017,7 @@ public class Escalator extends Widget implements RequiresResize,
public void scrollToRowAndSpacer(final int rowIndex,
final ScrollDestination destination, final int padding)
throws IllegalArgumentException {
- Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+ Scheduler.get().scheduleFinally(new ScheduledCommand() {
@Override
public void execute() {
validateScrollDestination(destination, padding);
@@ -6435,7 +6435,7 @@ public class Escalator extends Widget implements RequiresResize,
@Override
public boolean isWorkPending() {
return body.domSorter.waiting || verticalScrollbar.isWorkPending()
- || horizontalScrollbar.isWorkPending();
+ || horizontalScrollbar.isWorkPending() || layoutIsScheduled;
}
@Override