Skip to content

Added Switch to show/hide scrollBar #1080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Sep 17, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function ShapeTriContainer(props: TriContainerProps) {
// const { showHeader, showFooter } = container;
// When the header and footer are not displayed, the body must be displayed
const showBody = true;
const scrollbars = container.scrollbars;
const showVerticalScrollbar = container.showVerticalScrollbar;

const { items: bodyItems, ...otherBodyProps } =
container.body["0"].children.view.getView();
Expand Down Expand Up @@ -120,7 +120,7 @@ export function ShapeTriContainer(props: TriContainerProps) {
margin: "0px",
padding: "0px",
}}
hideScrollbar={!scrollbars}
hideScrollbar={!showVerticalScrollbar}
>
<div style={{ position: "relative", height: "100%" }}>
<StylesShape
Expand Down