File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
docs/data/tree-view/rich-tree-view/expansion Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export default function ApiMethodIsItemExpanded() {
48
48
} ;
49
49
50
50
return (
51
- < Stack spacing = { 2 } >
51
+ < Stack spacing = { 2 } sx = { { position : 'relative' } } >
52
52
< Stack spacing = { 2 } direction = "row" >
53
53
< Button onClick = { checkExpansion } >
54
54
Check if the the Data Grid is expanded
@@ -59,6 +59,7 @@ export default function ApiMethodIsItemExpanded() {
59
59
onClose = { ( ) => setIsSnackbarOpen ( false ) }
60
60
message = { `Data Grid is ${ isGridExpanded ? 'expanded' : 'collapsed' } ` }
61
61
anchorOrigin = { { vertical : 'bottom' , horizontal : 'center' } }
62
+ sx = { { position : 'absolute' } }
62
63
/>
63
64
</ Stack >
64
65
< Box sx = { { minHeight : 352 , minWidth : 250 } } >
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export default function ApiMethodIsItemExpanded() {
48
48
} ;
49
49
50
50
return (
51
- < Stack spacing = { 2 } >
51
+ < Stack spacing = { 2 } sx = { { position : 'relative' } } >
52
52
< Stack spacing = { 2 } direction = "row" >
53
53
< Button onClick = { checkExpansion } >
54
54
Check if the the Data Grid is expanded
@@ -59,6 +59,7 @@ export default function ApiMethodIsItemExpanded() {
59
59
onClose = { ( ) => setIsSnackbarOpen ( false ) }
60
60
message = { `Data Grid is ${ isGridExpanded ? 'expanded' : 'collapsed' } ` }
61
61
anchorOrigin = { { vertical : 'bottom' , horizontal : 'center' } }
62
+ sx = { { position : 'absolute' } }
62
63
/>
63
64
</ Stack >
64
65
< Box sx = { { minHeight : 352 , minWidth : 250 } } >
Original file line number Diff line number Diff line change 8
8
onClose={() => setIsSnackbarOpen(false)}
9
9
message={`Data Grid is ${isGridExpanded ? 'expanded' : 'collapsed'}`}
10
10
anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
11
+ sx={{ position: 'absolute' }}
11
12
/>
12
13
</Stack>
13
14
<Box sx={{ minHeight: 352, minWidth: 250 }}>
You can’t perform that action at this time.
0 commit comments