@@ -85,6 +85,7 @@ export const NetflowOverview: React.FC<NetflowOverviewProps> = ({
8585  const  containerRef  =  React . createRef < HTMLDivElement > ( ) ; 
8686  const  [ containerSize ,  setContainerSize ]  =  React . useState < DOMRect > ( {  width : 0 ,  height : 0  }  as  DOMRect ) ; 
8787  const  [ sidePanelWidth ,  setSidePanelWidth ]  =  React . useState < number > ( 0 ) ; 
88+   const  [ offsetTop ,  setOffsetTop ]  =  React . useState < number > ( 0 ) ; 
8889
8990  const  setKebabOptions  =  React . useCallback ( 
9091    ( id : OverviewPanelId ,  options : PanelKebabOptions )  =>  { 
@@ -137,6 +138,7 @@ export const NetflowOverview: React.FC<NetflowOverviewProps> = ({
137138  React . useEffect ( ( )  =>  { 
138139    observeDOMRect ( containerRef ,  containerSize ,  setContainerSize ) ; 
139140    setSidePanelWidth ( document . getElementById ( 'summaryPanel' ) ?. clientWidth  ||  0 ) ; 
141+     setOffsetTop ( containerRef . current ?. offsetTop  ||  0 ) ; 
140142  } ,  [ containerRef ,  containerSize ] ) ; 
141143
142144  React . useEffect ( ( )  =>  { 
@@ -683,15 +685,19 @@ export const NetflowOverview: React.FC<NetflowOverviewProps> = ({
683685  }  else  { 
684686    return  ( 
685687      < div 
686-         style = { {  padding : `${ containerPadding }  px 0 ${ containerPadding }  px ${ containerPadding }  px`  } } 
688+         style = { { 
689+           width : '100%' , 
690+           height : '100%' , 
691+           padding : `${ containerPadding }  px 0 ${ containerPadding }  px ${ containerPadding }  px` 
692+         } } 
687693        ref = { containerRef } 
688694      > 
689695        { allowFocus  &&  selectedPanel  &&  ( 
690696          < div 
691697            id = "overview-absolute-graph" 
692698            style = { { 
693699              position : 'absolute' , 
694-               top : containerSize . top , 
700+               top : offsetTop , 
695701              right : containerSize . width  /  5  +  sidePanelWidth , 
696702              height : containerSize . height , 
697703              overflow : 'hidden' , 
0 commit comments