@@ -22,9 +22,8 @@ import { useMergeCompStyles } from "@lowcoder-ee/util/hooks";
22
22
import { childrenToProps } from "@lowcoder-ee/comps/generators/multi" ;
23
23
import { AnimationStyleType } from "@lowcoder-ee/comps/controls/styleControlConstants" ;
24
24
25
- const ListViewWrapper = styled . div < { $style : any ; $paddingWidth : string , $animationStyle :AnimationStyleType , $autoHeight : boolean } > `
25
+ const ListViewWrapper = styled . div < { $style : any ; $paddingWidth : string , $animationStyle :AnimationStyleType } > `
26
26
height: 100%;
27
- overflow: ${ ( props ) => ( ! props . $autoHeight ? "scroll" : "hidden" ) } ;
28
27
border: 1px solid ${ ( props ) => props . $style . border } ;
29
28
border-radius: ${ ( props ) => props . $style . radius } ;
30
29
padding: 3px ${ ( props ) => props . $paddingWidth } ;
@@ -42,7 +41,8 @@ const FooterWrapper = styled.div`
42
41
` ;
43
42
44
43
const 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)" ) } ;
46
46
` ;
47
47
48
48
const FlexWrapper = styled . div `
@@ -60,7 +60,6 @@ const ListOrientationWrapper = styled.div<{
60
60
height: ${ ( props ) => ( props . $autoHeight ? "auto" : "100%" ) } ;
61
61
display: flex;
62
62
flex-direction: ${ ( props ) => ( props . $isHorizontal ? "row" : "column" ) } ;
63
- height: 100%;
64
63
` ;
65
64
66
65
type MinHorizontalWidthContextType = {
@@ -292,7 +291,7 @@ export function ListView(props: Props) {
292
291
// log.debug("renders: ", renders);
293
292
return (
294
293
< BackgroundColorContext . Provider value = { style . background } >
295
- < ListViewWrapper $style = { style } $paddingWidth = { paddingWidth } $animationStyle = { animationStyle } $autoHeight = { autoHeight } >
294
+ < ListViewWrapper $style = { style } $paddingWidth = { paddingWidth } $animationStyle = { animationStyle } >
296
295
< BodyWrapper ref = { ref } $autoHeight = { autoHeight } >
297
296
< ScrollBar style = { { height : autoHeight ? "auto" : "100%" , margin : "0px" , padding : "0px" } } hideScrollbar = { horizontal ? ! showHorizontalScrollbar : ! showVerticalScrollbar } overflow = { autoHeight ? horizontal ? 'scroll' : 'hidden' : 'scroll' } >
298
297
< ReactResizeDetector
0 commit comments