Skip to content

Commit 75644e3

Browse files
committed
Revert "Fix headers not scrolling"
This reverts commit b4104f8.
1 parent b4104f8 commit 75644e3

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

packages/@react-aria/virtualizer/src/VirtualizerItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function layoutInfoToStyle(
7979
WebkitTransition: 'all',
8080
WebkitTransitionDuration: 'inherit',
8181
transitionDuration: 'inherit',
82-
width: isFullWidth && layoutInfo.shouldMatchParentWidth ? '100%' : layoutInfo.rect.width,
82+
width: isFullWidth ? '100%' : layoutInfo.rect.width,
8383
height: layoutInfo.rect.height,
8484
opacity: layoutInfo.opacity,
8585
zIndex: layoutInfo.zIndex,

packages/@react-stately/layout/src/TableLayout.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ export class TableLayout<T> extends ListLayout<T> {
152152
buildHeader(): LayoutNode {
153153
let rect = new Rect(0, 0, 0, 0);
154154
let layoutInfo = new LayoutInfo('header', 'header', rect);
155-
layoutInfo.shouldMatchParentWidth = false;
156155

157156
let y = 0;
158157
let width = 0;

packages/@react-stately/virtualizer/src/LayoutInfo.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ export class LayoutInfo {
7272
*/
7373
allowOverflow: boolean;
7474

75-
/**
76-
* Whether the layout info should match the parent's pixel width or be a block/percent
77-
* when an element should be full width.
78-
* @default true
79-
*/
80-
shouldMatchParentWidth: boolean = true;
81-
8275
/**
8376
* @param type A string representing the view type. Should be `'item'` for item views.
8477
Other types are used by supplementary views.
@@ -110,7 +103,6 @@ export class LayoutInfo {
110103
res.isSticky = this.isSticky;
111104
res.zIndex = this.zIndex;
112105
res.allowOverflow = this.allowOverflow;
113-
res.shouldMatchParentWidth = this.shouldMatchParentWidth;
114106
return res;
115107
}
116108
}

0 commit comments

Comments
 (0)