diff --git a/test/tests/itemTreeTest.js b/test/tests/itemTreeTest.js index de27f09b6d..0e3179de23 100644 --- a/test/tests/itemTreeTest.js +++ b/test/tests/itemTreeTest.js @@ -438,7 +438,7 @@ describe("Zotero.ItemTree", function() { itemsView = zp.itemsView; var treebox = itemsView._treebox; - var numVisibleRows = treebox.getPageLength(); + var numVisibleRows = treebox.getLastVisibleRow() - treebox.getFirstVisibleRow(); // Get a numeric string left-padded with zeroes function getTitle(i, max) { @@ -489,7 +489,7 @@ describe("Zotero.ItemTree", function() { itemsView = zp.itemsView; var treebox = itemsView._treebox; - var numVisibleRows = treebox.getPageLength(); + var numVisibleRows = treebox.getLastVisibleRow() - treebox.getFirstVisibleRow(); // Get a numeric string left-padded with zeroes function getTitle(i, max) { @@ -545,7 +545,7 @@ describe("Zotero.ItemTree", function() { itemsView = zp.itemsView; var treebox = itemsView._treebox; - var numVisibleRows = treebox.getPageLength(); + var numVisibleRows = treebox.getLastVisibleRow() - treebox.getFirstVisibleRow(); // Get a numeric string left-padded with zeroes function getTitle(i, max) {