Skip to content

Commit

Permalink
UC兼容处理
Browse files Browse the repository at this point in the history
防止UC插入加载区后,滑动区的滚动高度不重新计算
  • Loading branch information
kuangyeheng committed Jan 23, 2016
1 parent 4345b3d commit 9b19b0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/dropload.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

// 如果加载下方,事先在下方插入DOM
if(me.opts.loadDownFn != ''){
me.$element.append('<div class="'+me.opts.domDown.domClass+'">'+me.opts.domDown.domRefresh+'</div>');
me.$element.append('<div class="'+me.opts.domDown.domClass+'">'+me.opts.domDown.domRefresh+'</div>').append('<div style="width:100%;height:0;visibility:hidden;"></div>');
me.$domDown = $('.'+me.opts.domDown.domClass);
}

Expand Down Expand Up @@ -286,4 +286,4 @@
'transition':'all '+num+'ms'
});
}
})(window.Zepto || window.jQuery);
})(window.Zepto || window.jQuery);

1 comment on commit 9b19b0d

@ximan
Copy link
Owner

@ximan ximan commented on 9b19b0d Feb 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢你的奇思妙想!
UC这样处理,并没有完全解决这个bug。我测试的时候DEMO3是好的,DEMO1和2依旧有bug。我在0.8.0里增加了2种办法,尽量避免:https://github.com/ximan/dropload#已知问题

Please sign in to comment.