Skip to content

Commit

Permalink
[fix] add resetDimensions in Scroller init progress
Browse files Browse the repository at this point in the history
  • Loading branch information
jin5354 committed Jun 19, 2017
1 parent 3008b04 commit 8dc8914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/Scroller/src/Scroller.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export default {
* 使用 MutationObserver 监听 slot 内 DOM 变动,并及时更新 Scroller
* ios 6+ , Android 4.4+
*/
this.slotObserver = new MutationObserver(() => {
this.updateDOMData()
this.resetDimensions()
Expand Down Expand Up @@ -179,6 +178,7 @@ export default {
bouncing: this.bouncing
})
this.scroller.setPosition(this.scrollTargetRect.left + this.$scrollTarget.clientLeft, this.scrollTargetRect.top + this.$scrollTarget.clientTop)
this.resetDimensions()
/*
* 若 onRefresh 不为空,绑定下拉刷新相关事件
Expand Down

0 comments on commit 8dc8914

Please sign in to comment.