1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Remove the |el| property in PDFPageView and PDFThumbnailView

This commit is contained in:
Jonas Jenwald 2015-02-08 17:40:52 +01:00
parent bc7a110743
commit eed67ea8bb
3 changed files with 4 additions and 6 deletions

View file

@ -194,16 +194,16 @@ function getVisibleElements(scrollEl, views, sortByVisibility) {
var currentWidth, viewWidth;
for (var i = 0, ii = views.length; i < ii; ++i) {
view = views[i];
currentHeight = view.el.offsetTop + view.el.clientTop;
viewHeight = view.el.clientHeight;
currentHeight = view.div.offsetTop + view.div.clientTop;
viewHeight = view.div.clientHeight;
if ((currentHeight + viewHeight) < top) {
continue;
}
if (currentHeight > bottom) {
break;
}
currentWidth = view.el.offsetLeft + view.el.clientLeft;
viewWidth = view.el.clientWidth;
currentWidth = view.div.offsetLeft + view.div.clientLeft;
viewWidth = view.div.clientWidth;
if ((currentWidth + viewWidth) < left || currentWidth > right) {
continue;
}