Revert "Fix Bug 37134"

This reverts commit 3c7e717149.
This commit is contained in:
Julia Radzhabova 2018-03-16 11:36:51 +03:00
parent 3ec88d6f68
commit 6a8502fbaf

View file

@ -575,11 +575,11 @@ define([
if (div.length<=0) return;
var div_top = div.offset().top;
if (div_top < inner_top+div[0].offsetTop || div_top+div.outerHeight() > inner_top + innerEl.height()) {
if (div_top < inner_top || div_top+div.outerHeight() > inner_top + innerEl.height()) {
if (this.scroller && this.allowScrollbar) {
this.scroller.scrollTop(innerEl.scrollTop() + div_top - inner_top - div[0].offsetTop, 0);
this.scroller.scrollTop(innerEl.scrollTop() + div_top - inner_top, 0);
} else {
innerEl.scrollTop(innerEl.scrollTop() + div_top - inner_top - div[0].offsetTop);
innerEl.scrollTop(innerEl.scrollTop() + div_top - inner_top);
}
}
},