@@ -22,9 +22,8 @@ import { useMergeCompStyles } from "@lowcoder-ee/util/hooks";
2222import { childrenToProps } from "@lowcoder-ee/comps/generators/multi" ;
2323import { AnimationStyleType } from "@lowcoder-ee/comps/controls/styleControlConstants" ;
2424
25- const ListViewWrapper = styled . div < { $style : any ; $paddingWidth : string , $animationStyle :AnimationStyleType , $autoHeight : boolean } > `
25+ const ListViewWrapper = styled . div < { $style : any ; $paddingWidth : string , $animationStyle :AnimationStyleType } > `
2626 height: 100%;
27- overflow: ${ ( props ) => ( ! props . $autoHeight ? "scroll" : "hidden" ) } ;
2827 border: 1px solid ${ ( props ) => props . $style . border } ;
2928 border-radius: ${ ( props ) => props . $style . radius } ;
3029 padding: 3px ${ ( props ) => props . $paddingWidth } ;
@@ -42,7 +41,8 @@ const FooterWrapper = styled.div`
4241` ;
4342
4443const BodyWrapper = styled . div < { $autoHeight : boolean } > `
45- height: ${ ( props ) => ( props . $autoHeight ? "100%" : "calc(100% - 32px)" ) } ;
44+ overflow: ${ ( props ) => ( ! props . $autoHeight ? "auto" : "hidden" ) } ;
45+ height: ${ ( props ) => ( props . $autoHeight ? "auto" : "calc(100% - 32px)" ) } ;
4646` ;
4747
4848const FlexWrapper = styled . div `
@@ -60,7 +60,6 @@ const ListOrientationWrapper = styled.div<{
6060 height: ${ ( props ) => ( props . $autoHeight ? "auto" : "100%" ) } ;
6161 display: flex;
6262 flex-direction: ${ ( props ) => ( props . $isHorizontal ? "row" : "column" ) } ;
63- height: 100%;
6463` ;
6564
6665type MinHorizontalWidthContextType = {
@@ -292,7 +291,7 @@ export function ListView(props: Props) {
292291 // log.debug("renders: ", renders);
293292 return (
294293 < BackgroundColorContext . Provider value = { style . background } >
295- < ListViewWrapper $style = { style } $paddingWidth = { paddingWidth } $animationStyle = { animationStyle } $autoHeight = { autoHeight } >
294+ < ListViewWrapper $style = { style } $paddingWidth = { paddingWidth } $animationStyle = { animationStyle } >
296295 < BodyWrapper ref = { ref } $autoHeight = { autoHeight } >
297296 < ScrollBar style = { { height : autoHeight ? "auto" : "100%" , margin : "0px" , padding : "0px" } } hideScrollbar = { horizontal ? ! showHorizontalScrollbar : ! showVerticalScrollbar } overflow = { autoHeight ? horizontal ? 'scroll' : 'hidden' : 'scroll' } >
298297 < ReactResizeDetector
0 commit comments