Skip to content

Commit 1acf904

Browse files
committed
tabbed container scrollbar
1 parent 9f8d867 commit 1acf904

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

client/packages/lowcoder/src/comps/comps/tabs/tabbedContainerComp.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const childrenMap = {
5353
1: { layout: {}, items: {} },
5454
}),
5555
autoHeight: AutoHeightControl,
56+
showVerticalScrollbar: withDefault(BoolControl, false),
5657
scrollbars: withDefault(BoolControl, false),
5758
placement: withDefault(PositionControl, "top"),
5859
onEvent: eventHandlerControl(EVENT_OPTIONS),
@@ -239,7 +240,7 @@ const TabbedContainer = (props: TabbedContainerProps) => {
239240
forceRender: true,
240241
children: (
241242
<BackgroundColorContext.Provider value={bodyStyle.background}>
242-
<ScrollBar style={{ height: props.autoHeight ? "100%" : "auto", margin: "0px", padding: "0px" }} hideScrollbar={!props.scrollbars}>
243+
<ScrollBar style={{ height: props.autoHeight ? "100%" : "auto", margin: "0px", padding: "0px" }} hideScrollbar={!props.showVerticalScrollbar} overflow={props.autoHeight?'hidden':'scroll'}>
243244
<ContainerInTab
244245
layout={containerProps.layout.getView()}
245246
items={gridItemCompToGridItems(containerProps.items.getView())}
@@ -325,8 +326,8 @@ export const TabbedContainerBaseComp = (function () {
325326
{ children.tabsGutter.propertyView({ label: trans("tabbedContainer.gutter"), tooltip : trans("tabbedContainer.gutterTooltip") })}
326327
{children.autoHeight.getPropertyView()}
327328
{!children.autoHeight.getView() && (
328-
children.scrollbars.propertyView({
329-
label: trans("prop.scrollbar"),
329+
children.showVerticalScrollbar.propertyView({
330+
label: trans("prop.showVerticalScrollbar"),
330331
})
331332
)}
332333
</Section>

0 commit comments

Comments
 (0)