Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class ScrollAreaRoot extends Component<
const { wMax, hMax, observeParentSize } = this.asProps;
const size = { width: '', height: '' };
if (!this.$container || !this.$wrapper) return size;
if (!wMax && !hMax) return size;
const { scrollWidth, scrollHeight } = this.$container;
const style = window.getComputedStyle(this.$wrapper);
const parent = this.$wrapper.parentElement;
Expand Down
2 changes: 2 additions & 0 deletions semcore/data-table/src/components/Body/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class BodyRoot<Data extends DataTableData, UniqKeyType> extends Component<DataTa
rows,
renderCellOverlay,
selectedRows,
hasGroups,
} = this.asProps;

let rowsToRender = rows;
Expand Down Expand Up @@ -394,6 +395,7 @@ class BodyRoot<Data extends DataTableData, UniqKeyType> extends Component<DataTa
<SSpinContainer
innerOutline
// @ts-ignore
hasGroups={hasGroups}
headerHeight={`${this.getSpinnerTopOffset()}px`}
tabIndex={-1}
ref={spinnerRef}
Expand Down
6 changes: 5 additions & 1 deletion semcore/data-table/src/components/Body/style.shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,14 @@ SSpinContainer {

&[headerHeight] {
position: sticky;
top: 0;
top: var(--headerHeight);
height: min(100vh, calc(var(--global-table-height) - var(--headerHeight)));
min-height: min(100vh, calc(var(--global-table-height) - var(--headerHeight)));
}

&[hasGroups] {
grid-area: 3 / 1 / 20 / 5;
}
}

SEmptyData {
Expand Down
Loading