Skip to content

Commit b0e0ca5

Browse files
committed
fixed app infite scrolling issue
1 parent ce65c0b commit b0e0ca5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/app/components/StateRoute/AxMap/AxMap.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ const AxContainer = (props: AxContainer) => {
1414
} = props;
1515

1616
return (
17-
<div>
17+
<div style={{height: '90vh'}}>
1818
<ParentSize className='componentMapContainer'>
1919
{({ width, height }) => {
2020
// eslint-disable-next-line react/prop-types
2121
const maxHeight: number = 1200;
2222
const h = Math.min(height, maxHeight);
23+
console.log('h: ', h);
24+
console.log('width', width)
2325
return (
2426
<AxTree
2527
axSnapshots={axSnapshots}

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import WebMetricsContainer from './WebMetrics/WebMetricsContainer';
1717
import { MainState, RootState, StateRouteProps } from '../../FrontendTypes';
1818
import AxContainer from './AxMap/AxMap';
1919

20-
2120
/*
2221
Loads the appropriate StateRoute view and renders the Map, Performance, History, Webmetrics, and Tree navbar buttons after clicking on the 'State' button located near the top rightmost corner.
2322
*/
@@ -145,7 +144,10 @@ const StateRoute = (props: StateRouteProps) => {
145144
<label htmlFor='disable'>Disable</label>
146145
{showTree && <AxContainer
147146
axSnapshots={axSnapshots}
148-
currLocation={currLocation}/>}
147+
snapshot={snapshot}
148+
snapshots={snapshots}
149+
currLocation={currLocation}
150+
/>}
149151
</div>
150152
) : (
151153
<div>

0 commit comments

Comments
 (0)