diff --git a/frontend/src/views/Project/InvestmentProject.tsx b/frontend/src/views/Project/InvestmentProject.tsx index 8ac506a2..00004019 100644 --- a/frontend/src/views/Project/InvestmentProject.tsx +++ b/frontend/src/views/Project/InvestmentProject.tsx @@ -179,6 +179,7 @@ export function InvestmentProject() { display: flex; flex-direction: column; height: 100%; + overflow-y: auto; `} > + {routeParams.tabView === 'talous' && } {routeParams.tabView === 'kohteet' && ( diff --git a/frontend/src/views/ProjectObject/ProjectObject.tsx b/frontend/src/views/ProjectObject/ProjectObject.tsx index 4cb4c542..b291dff2 100644 --- a/frontend/src/views/ProjectObject/ProjectObject.tsx +++ b/frontend/src/views/ProjectObject/ProjectObject.tsx @@ -239,7 +239,7 @@ export function ProjectObject(props: Props) { drawStyle={PROJ_OBJ_STYLE} editable={true} vectorLayers={[projectLayer]} - fitExtent="vectorLayers" + fitExtent="geoJson" onFeaturesSaved={(features) => { if (!projectObject.data) { setGeom(features);