Skip to content

Commit 22a3fd5

Browse files
Review: Nora
1 parent f45e641 commit 22a3fd5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

docs/data/tree-view/rich-tree-view/expansion/ApiMethodIsItemExpanded.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function ApiMethodIsItemExpanded() {
4848
};
4949

5050
return (
51-
<Stack spacing={2}>
51+
<Stack spacing={2} sx={{ position: 'relative' }}>
5252
<Stack spacing={2} direction="row">
5353
<Button onClick={checkExpansion}>
5454
Check if the the Data Grid is expanded
@@ -59,6 +59,7 @@ export default function ApiMethodIsItemExpanded() {
5959
onClose={() => setIsSnackbarOpen(false)}
6060
message={`Data Grid is ${isGridExpanded ? 'expanded' : 'collapsed'}`}
6161
anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
62+
sx={{ position: 'absolute' }}
6263
/>
6364
</Stack>
6465
<Box sx={{ minHeight: 352, minWidth: 250 }}>

docs/data/tree-view/rich-tree-view/expansion/ApiMethodIsItemExpanded.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function ApiMethodIsItemExpanded() {
4848
};
4949

5050
return (
51-
<Stack spacing={2}>
51+
<Stack spacing={2} sx={{ position: 'relative' }}>
5252
<Stack spacing={2} direction="row">
5353
<Button onClick={checkExpansion}>
5454
Check if the the Data Grid is expanded
@@ -59,6 +59,7 @@ export default function ApiMethodIsItemExpanded() {
5959
onClose={() => setIsSnackbarOpen(false)}
6060
message={`Data Grid is ${isGridExpanded ? 'expanded' : 'collapsed'}`}
6161
anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
62+
sx={{ position: 'absolute' }}
6263
/>
6364
</Stack>
6465
<Box sx={{ minHeight: 352, minWidth: 250 }}>

docs/data/tree-view/rich-tree-view/expansion/ApiMethodIsItemExpanded.tsx.preview

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
onClose={() => setIsSnackbarOpen(false)}
99
message={`Data Grid is ${isGridExpanded ? 'expanded' : 'collapsed'}`}
1010
anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
11+
sx={{ position: 'absolute' }}
1112
/>
1213
</Stack>
1314
<Box sx={{ minHeight: 352, minWidth: 250 }}>

0 commit comments

Comments
 (0)