From 4b75974ffb5c1a91c770c03520f82810ab137adc Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 15 Mar 2017 14:05:38 +0800 Subject: [PATCH] bug --- dist/base.js | 8 ++++---- src/base/collection/collection.js | 4 ++-- src/base/grid/grid.js | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/base.js b/dist/base.js index 7998c28b2..e034c9faf 100644 --- a/dist/base.js +++ b/dist/base.js @@ -21678,9 +21678,9 @@ BI.Collection = BI.inherit(BI.Widget, { } this._scrollLock = true; this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft()); - this.element.scrollLeft(this.options.scrollLeft); this._debounceRelease(); this._calculateChildrenToRender(); + this.element.scrollLeft(this.options.scrollLeft); }, setScrollTop: function (scrollTop) { @@ -21689,9 +21689,9 @@ BI.Collection = BI.inherit(BI.Widget, { } this._scrollLock = true; this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop()); - this.element.scrollTop(this.options.scrollTop); this._debounceRelease(); this._calculateChildrenToRender(); + this.element.scrollTop(this.options.scrollTop); }, setOverflowX: function (b) { @@ -24900,9 +24900,9 @@ BI.Grid = BI.inherit(BI.Widget, { } this._scrollLock = true; this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft()); - this.element.scrollLeft(this.options.scrollLeft); this._debounceRelease(); this._calculateChildrenToRender(); + this.element.scrollLeft(this.options.scrollLeft); }, setScrollTop: function (scrollTop) { @@ -24911,9 +24911,9 @@ BI.Grid = BI.inherit(BI.Widget, { } this._scrollLock = true; this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop()); - this.element.scrollTop(this.options.scrollTop); this._debounceRelease(); this._calculateChildrenToRender(); + this.element.scrollTop(this.options.scrollTop); }, setOverflowX: function (b) { diff --git a/src/base/collection/collection.js b/src/base/collection/collection.js index f69bfd0ad..e1e3ac45f 100644 --- a/src/base/collection/collection.js +++ b/src/base/collection/collection.js @@ -223,9 +223,9 @@ BI.Collection = BI.inherit(BI.Widget, { } this._scrollLock = true; this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft()); - this.element.scrollLeft(this.options.scrollLeft); this._debounceRelease(); this._calculateChildrenToRender(); + this.element.scrollLeft(this.options.scrollLeft); }, setScrollTop: function (scrollTop) { @@ -234,9 +234,9 @@ BI.Collection = BI.inherit(BI.Widget, { } this._scrollLock = true; this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop()); - this.element.scrollTop(this.options.scrollTop); this._debounceRelease(); this._calculateChildrenToRender(); + this.element.scrollTop(this.options.scrollTop); }, setOverflowX: function (b) { diff --git a/src/base/grid/grid.js b/src/base/grid/grid.js index e639f1b7c..a6f8e7504 100644 --- a/src/base/grid/grid.js +++ b/src/base/grid/grid.js @@ -217,9 +217,9 @@ BI.Grid = BI.inherit(BI.Widget, { } this._scrollLock = true; this.options.scrollLeft = BI.clamp(scrollLeft || 0, 0, this._getMaxScrollLeft()); - this.element.scrollLeft(this.options.scrollLeft); this._debounceRelease(); this._calculateChildrenToRender(); + this.element.scrollLeft(this.options.scrollLeft); }, setScrollTop: function (scrollTop) { @@ -228,9 +228,9 @@ BI.Grid = BI.inherit(BI.Widget, { } this._scrollLock = true; this.options.scrollTop = BI.clamp(scrollTop || 0, 0, this._getMaxScrollTop()); - this.element.scrollTop(this.options.scrollTop); this._debounceRelease(); this._calculateChildrenToRender(); + this.element.scrollTop(this.options.scrollTop); }, setOverflowX: function (b) {