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) => {
102102 < Route
103103 path = '/accessibility'
104104 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
111125 }
112126 > </ Route >
113127 < Route
@@ -173,6 +187,7 @@ const StateRoute = (props: StateRouteProps) => {
173187 // eslint-disable-next-line react/prop-types
174188 const maxHeight : number = 1200 ;
175189 const h = Math . min ( height , maxHeight ) ;
190+ console . log ( 'h component map: ' , h ) ;
176191 return (
177192 < ComponentMap
178193 currentSnapshot = { currLocation . stateSnapshot }
You can’t perform that action at this time.
0 commit comments