File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed
src/app/components/StateRoute Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,26 @@ const StateRoute = (props: StateRouteProps) => {
102
102
< Route
103
103
path = '/accessibility'
104
104
element = {
105
- < AxTree
106
- axSnapshots = { axSnapshots }
107
- snapshot = { snapshot }
108
- snapshots = { snapshots }
109
- currLocation = { currLocation }
110
- />
105
+ hierarchy ? (
106
+ < ParentSize className = 'componentMapContainer' >
107
+ { ( { width, height } ) => {
108
+ // eslint-disable-next-line react/prop-types
109
+ const maxHeight : number = 1200 ;
110
+ const h = Math . min ( height , maxHeight ) ;
111
+ console . log ( 'h: ' , h ) ;
112
+ return (
113
+ < AxTree
114
+ axSnapshots = { axSnapshots }
115
+ snapshot = { snapshot }
116
+ snapshots = { snapshots }
117
+ currLocation = { currLocation }
118
+ width = { width }
119
+ height = { h }
120
+ />
121
+ ) ;
122
+ } }
123
+ </ ParentSize >
124
+ ) : null
111
125
}
112
126
> </ Route >
113
127
< Route
@@ -173,6 +187,7 @@ const StateRoute = (props: StateRouteProps) => {
173
187
// eslint-disable-next-line react/prop-types
174
188
const maxHeight : number = 1200 ;
175
189
const h = Math . min ( height , maxHeight ) ;
190
+ console . log ( 'h component map: ' , h ) ;
176
191
return (
177
192
< ComponentMap
178
193
currentSnapshot = { currLocation . stateSnapshot }
You can’t perform that action at this time.
0 commit comments