Fix tbody offsetTop should be offsetHeight.

[minor]
This commit is contained in:
voussoir 2025-06-30 17:24:55 -07:00
parent 03e8934c8d
commit 8079486067

View file

@ -366,7 +366,7 @@ function render_pages()
{
// I usually pick this threshold by experimentation but you can probably
// do something more rigorously correct.
if (tbody.offsetTop + tbody.offsetParent.offsetTop > 900)
if (tbody.offsetHeight + tbody.offsetParent.offsetTop > 900)
{
page = new_page();
tbody = page.query("table tbody");