Skip to content

Commit b6e32d6

Browse files
committed
vertical scrollbar in shapes
1 parent a5f5919 commit b6e32d6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

client/packages/lowcoder/src/comps/comps/shapeComp/shapeTriContainer.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function ShapeTriContainer(props: TriContainerProps) {
8888
// const { showHeader, showFooter } = container;
8989
// When the header and footer are not displayed, the body must be displayed
9090
const showBody = true;
91-
const scrollbars = container.scrollbars;
91+
const showVerticalScrollbar = container.showVerticalScrollbar;
9292

9393
const { items: bodyItems, ...otherBodyProps } =
9494
container.body["0"].children.view.getView();
@@ -111,30 +111,30 @@ export function ShapeTriContainer(props: TriContainerProps) {
111111
}, [icon.props]);
112112

113113
return (
114-
<div style={{ padding: style.margin, height: "100%" }}>
114+
<div style={{padding: style.margin, height: '100%'}}>
115115
<Wrapper $style={style}>
116116
<BackgroundColorContext.Provider value={bodyStyle.background}>
117117
<ScrollBar
118118
style={{
119-
height: container.autoHeight ? "auto" : "100%",
120-
margin: "0px",
121-
padding: "0px",
119+
height: container.autoHeight ? 'auto' : '100%',
120+
margin: '0px',
121+
padding: '0px',
122122
}}
123-
hideScrollbar={!scrollbars}
123+
hideScrollbar={!showVerticalScrollbar}
124124
>
125-
<div style={{ position: "relative", height: "100%" }}>
126-
<StylesShape
125+
<div style={{position: 'relative', height: '100%'}}>
126+
<StylesShape
127127
$style={style}
128128
type={shape?.value as any}
129129
noise={false}
130130
index={shape.index}
131131
styles={{
132-
position: "absolute",
133-
top: "0",
134-
left: "50%",
135-
transform: "translateX(-50%)",
132+
position: 'absolute',
133+
top: '0',
134+
left: '50%',
135+
transform: 'translateX(-50%)',
136136
width: widthCalculator(style.margin),
137-
height: "100%",
137+
height: '100%',
138138
}}
139139
/>
140140
<BodyInnerGrid
@@ -143,9 +143,9 @@ export function ShapeTriContainer(props: TriContainerProps) {
143143
items={gridItemCompToGridItems(bodyItems)}
144144
autoHeight={container.autoHeight}
145145
emptyRows={14}
146-
minHeight={"142px"}
146+
minHeight={'142px'}
147147
hintPlaceholder={props.hintPlaceholder ?? HintPlaceHolder}
148-
$backgroundColor={bodyStyle?.background || "transparent"}
148+
$backgroundColor={bodyStyle?.background || 'transparent'}
149149
$borderColor={style?.border}
150150
$borderWidth={style?.borderWidth}
151151
$backgroundImage={bodyStyle?.backgroundImage}

0 commit comments

Comments
 (0)