Build
This commit is contained in:
parent
3d1de50d15
commit
791c3fcd78
@ -2991,12 +2991,12 @@
|
||||
}
|
||||
},
|
||||
toggle: function(a) {
|
||||
var thumb, top;
|
||||
var rect, thumb;
|
||||
thumb = a.firstChild;
|
||||
if (thumb.hidden) {
|
||||
if (thumb.nextSibling.offsetHeight > d.body.clientHeight && (top = a.getBoundingClientRect().top) < 0) {
|
||||
window.scroll(window.scrollX, window.scrollY + top);
|
||||
}
|
||||
rect = a.getBoundingClientRect();
|
||||
d.body.scrollTop += rect.top < 0 ? rect.top + thumb.height / (rect.height / rect.top * -1) : 0;
|
||||
d.body.scrollLeft += rect.left < 0 ? rect.left + thumb.width / (rect.width / rect.left * -1) : 0;
|
||||
return imgExpand.contract(thumb);
|
||||
} else {
|
||||
return imgExpand.expand(thumb);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user