File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
packages/main/src/components/AnalyticalTable Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -599,12 +599,19 @@ const AnalyticalTable = forwardRef<AnalyticalTableDomRef, AnalyticalTablePropTyp
599
599
onTableScroll ( e ) ;
600
600
}
601
601
const targetScrollTop = e . currentTarget . scrollTop ;
602
- if ( verticalScrollBarRef . current && verticalScrollBarRef . current . scrollTop !== targetScrollTop ) {
603
- if ( ! e . currentTarget . isExternalVerticalScroll ) {
604
- verticalScrollBarRef . current . scrollTop = targetScrollTop ;
605
- verticalScrollBarRef . current . isExternalVerticalScroll = true ;
602
+
603
+ if ( verticalScrollBarRef . current ) {
604
+ const vertScrollbarScrollElement = verticalScrollBarRef . current . firstElementChild as HTMLDivElement ;
605
+ if ( vertScrollbarScrollElement . offsetHeight !== scrollContainerRef . current ?. offsetHeight ) {
606
+ vertScrollbarScrollElement . style . height = `${ scrollContainerRef . current . offsetHeight } px` ;
607
+ }
608
+ if ( verticalScrollBarRef . current . scrollTop !== targetScrollTop ) {
609
+ if ( ! e . currentTarget . isExternalVerticalScroll ) {
610
+ verticalScrollBarRef . current . scrollTop = targetScrollTop ;
611
+ verticalScrollBarRef . current . isExternalVerticalScroll = true ;
612
+ }
613
+ e . currentTarget . isExternalVerticalScroll = false ;
606
614
}
607
- e . currentTarget . isExternalVerticalScroll = false ;
608
615
}
609
616
} ;
610
617
You can’t perform that action at this time.
0 commit comments