Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix single-table examples
  • Loading branch information
koperagen committed Oct 23, 2025
commit 27264bcc9486b8338cf6b1ecca242e57f4c48ecc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ val WritersideStyle = DataFrameHtmlData(
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -46,6 +46,8 @@ function sendHeight() {
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -99,11 +101,13 @@ function isElementVisible(el) {
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -525,6 +525,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -578,11 +580,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -625,6 +625,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -678,11 +680,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -773,6 +773,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -826,11 +828,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -577,6 +577,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -630,11 +632,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -595,6 +595,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -648,11 +650,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -513,6 +513,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -566,11 +568,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -477,6 +477,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -530,11 +532,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -503,6 +503,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -556,11 +558,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -503,6 +503,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -556,11 +558,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -477,6 +477,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -530,11 +532,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
function sendHeight() {
let totalHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
totalHeight += getElementHeight(element.querySelector(':scope > summary'));

Expand All @@ -497,6 +497,8 @@
}
} else if (element.tagName === 'BR') {
totalHeight += getElementHeight(element);
} else if (element.tagName === 'TABLE') {
totalHeight += getElementHeight(element);
}
});

Expand Down Expand Up @@ -550,11 +552,13 @@
function sendInitialHeight() {
let initialHeight = 0;

document.querySelectorAll('body > details, body > br').forEach(element => {
document.querySelectorAll('body > details, body > br, body > table').forEach(element => {
if (element.tagName === 'DETAILS') {
initialHeight += getElementHeight(element.querySelector(':scope > summary'));
} else if (element.tagName === 'BR') {
initialHeight += getElementHeight(element);
} else if (element.tagName === `TABLE`) {
initialHeight += getElementHeight(element);
}
});

Expand Down
Loading