Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 18 additions & 0 deletions 18 bigframes/display/table_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,27 @@ function render({ model, el }) {
model.save_changes();
}

let isHeightInitialized = false;

function handleTableHTMLChange() {
tableContainer.innerHTML = model.get(ModelProperty.TABLE_HTML);

// After the first render, dynamically set the container height to fit the
// initial page (usually 10 rows) and then lock it.
setTimeout(() => {
if (!isHeightInitialized) {
const table = tableContainer.querySelector('table');
if (table) {
const tableHeight = table.offsetHeight;
// Add a small buffer(e.g. 2px) for borders to avoid scrollbars.
if (tableHeight > 0) {
tableContainer.style.height = `${tableHeight + 2}px`;
isHeightInitialized = true;
}
}
}
}, 0);

const sortableColumns = model.get(ModelProperty.ORDERABLE_COLUMNS);
const currentSortContext = model.get(ModelProperty.SORT_CONTEXT) || [];

Expand Down
Loading
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.