Skip to content

Commit fd5683f

Browse files
Review: Nora
1 parent f45e641 commit fd5683f

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
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 }}>

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

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

2020
return (
21-
<Stack spacing={2}>
21+
<Stack spacing={2} sx={{ position: 'relative' }}>
2222
<Stack spacing={2} direction="row">
2323
<Button onClick={checkExpansion}>
2424
Check if the the Data Grid is expanded
@@ -29,6 +29,7 @@ export default function ApiMethodIsItemExpanded() {
2929
onClose={() => setIsSnackbarOpen(false)}
3030
message={`Data Grid is ${isGridExpanded ? 'expanded' : 'collapsed'}`}
3131
anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
32+
sx={{ position: 'absolute' }}
3233
/>
3334
</Stack>
3435
<Box sx={{ minHeight: 352, minWidth: 250 }}>

0 commit comments

Comments
 (0)