Skip to content

Commit c62d44a

Browse files
committed
chore: remove height props
1 parent 67e8d43 commit c62d44a

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

packages/raystack/components/data-table/components/virtualized-content.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ const DefaultEmptyComponent = () => (
159159
);
160160

161161
export function VirtualizedContent({
162-
height = '100%',
163162
rowHeight = 40,
164163
groupHeaderHeight,
165164
overscan = 5,
@@ -220,7 +219,6 @@ export function VirtualizedContent({
220219
<div
221220
ref={scrollContainerRef}
222221
className={cx(classNames.root, styles.scrollContainer)}
223-
style={{ height }}
224222
onScroll={handleVirtualScroll}
225223
>
226224
<div role='table' className={cx(styles.virtualTable, classNames.table)}>

packages/raystack/components/data-table/data-table.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
overflow-y: auto;
8282
overflow-x: auto;
8383
position: relative;
84+
height: 100%;
8485
}
8586

8687
.stickyHeader {

packages/raystack/components/data-table/data-table.types.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ export type DataTableContentBaseProps = {
128128
export type DataTableContentProps = DataTableContentBaseProps;
129129

130130
export type VirtualizedContentProps = DataTableContentBaseProps & {
131-
/** Height of the scroll container. */
132-
height?: number | string;
133131
/** Height of each row in pixels. */
134132
rowHeight?: number;
135133
/** Height of group header rows in pixels. Falls back to rowHeight if not set. */

0 commit comments

Comments
 (0)