Skip to content

Commit 1c4812b

Browse files
committed
horizontal row
1 parent 1acf904 commit 1c4812b

File tree

1 file changed

+3
-1
lines changed
  • client/packages/lowcoder/src/comps/comps/listViewComp

1 file changed

+3
-1
lines changed

client/packages/lowcoder/src/comps/comps/listViewComp/listView.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const ListOrientationWrapper = styled.div<{
5757
}>`
5858
height: ${(props) => (props.$autoHeight ? "auto" : "100%")};
5959
display: flex;
60-
flex-direction: ${(props) => (props.$isHorizontal && !props.$isGrid ? "row" : "column")};
60+
flex-direction: ${(props) => (props.$isHorizontal ? "row" : "column")};
6161
height: 100%;
6262
`;
6363

@@ -167,6 +167,7 @@ type Props = {
167167
};
168168

169169
export function ListView(props: Props) {
170+
console.log("🚀 ~ ListView ~ props:", props)
170171
const { comp } = props;
171172
const children = comp.children;
172173
const ref = useRef(null);
@@ -189,6 +190,7 @@ export function ListView(props: Props) {
189190
const showHorizontalScrollbar = useMemo(() => children.showHorizontalScrollbar.getView(), [children.showHorizontalScrollbar]);
190191
const showVerticalScrollbar = useMemo(() => children.showVerticalScrollbar.getView(), [children.showVerticalScrollbar]);
191192
const horizontal = useMemo(() => children.horizontal.getView(), [children.horizontal]);
193+
console.log("🚀 ~ ListView ~ horizontal:", horizontal)
192194
const minHorizontalWidth = useMemo(() => children.minHorizontalWidth.getView(), [children.minHorizontalWidth]);
193195
const noOfColumns = useMemo(
194196
() => Math.max(1, children.noOfColumns.getView()),

0 commit comments

Comments
 (0)