File tree Expand file tree Collapse file tree 5 files changed +8
-3
lines changed
client/packages/lowcoder/src
comps/comps/pageLayoutComp Expand file tree Collapse file tree 5 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export function PageLayout(props: LayoutProps & { siderCollapsed: boolean; setSi
142
142
}
143
143
144
144
useEffect ( ( ) => { setSiderCollapsed ( container . siderCollapsed ) } , [ container . siderCollapsed ] ) ;
145
-
145
+
146
146
return (
147
147
< div style = { { padding : style . margin , height : '100%' } } >
148
148
< ConfigProvider
@@ -157,7 +157,7 @@ export function PageLayout(props: LayoutProps & { siderCollapsed: boolean; setSi
157
157
} }
158
158
>
159
159
< Wrapper $style = { style } $animationStyle = { animationStyle } >
160
- < Layout style = { { padding : "0px" } } hasSider = { showSider && ! container . innerSider } >
160
+ < Layout style = { { padding : "0px" , overflow : container . mainScrollbars ? "scroll" : "inherit" } } hasSider = { showSider && ! container . innerSider } >
161
161
{ showSider && ! container . innerSider && ! container . siderRight && (
162
162
< > < BackgroundColorContext . Provider value = { siderStyle ?. siderBackground } >
163
163
< Sider
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ const childrenMap = {
53
53
autoHeight : AutoHeightControl ,
54
54
siderScrollbars : withDefault ( BoolControl , false ) ,
55
55
contentScrollbars : withDefault ( BoolControl , false ) ,
56
+ mainScrollbars : withDefault ( BoolControl , false ) ,
56
57
style : styleControl ( ContainerStyle , 'style' ) ,
57
58
headerStyle : styleControl ( ContainerHeaderStyle , 'headerStyle' ) ,
58
59
siderStyle : styleControl ( ContainerSiderStyle , 'siderStyle' ) ,
@@ -157,7 +158,8 @@ export class PageLayoutComp extends layoutBaseComp implements IContainer {
157
158
heightPropertyView ( ) {
158
159
return [
159
160
this . children . autoHeight . getPropertyView ( ) ,
160
- this . children . siderScrollbars . propertyView ( { label : trans ( "prop.siderScrollbar" ) } ) ,
161
+ this . children . siderScrollbars . propertyView ( { label : trans ( "prop.siderScrollbar" ) } ) ,
162
+ ( ! this . children . autoHeight . getView ( ) ) && this . children . mainScrollbars . propertyView ( { label : trans ( "prop.mainScrollbar" ) } ) ,
161
163
( ! this . children . autoHeight . getView ( ) ) && this . children . contentScrollbars . propertyView ( { label : trans ( "prop.showVerticalScrollbar" ) } ) ,
162
164
] ;
163
165
}
Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ export const en = {
203
203
"showVerticalScrollbar" : "Show Vertical Scrollbar" ,
204
204
"showHorizontalScrollbar" : "Show Horizontal Scrollbar" ,
205
205
"siderScrollbar" : "Show Scrollbars in Sider" ,
206
+ "mainScrollbar" : "Show Scrollbars in main content" ,
206
207
"siderRight" : "Show sider on the Right" ,
207
208
"siderWidth" : "Sider Width" ,
208
209
"siderWidthTooltip" : "Sider width supports percentages (%) and pixels (px)." ,
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ export const en = {
196
196
"textOverflow" : "Text Overflow" ,
197
197
"scrollbar" : "Show Scrollbars" ,
198
198
"siderScrollbar" : "Show Scrollbars in Sider" ,
199
+ "mainScrollbar" : "Show Scrollbars in main content" ,
199
200
"siderRight" : "Show sider on the Right" ,
200
201
"siderWidth" : "Sider Width" ,
201
202
"siderWidthTooltip" : "Sider width supports percentages (%) and pixels (px)." ,
Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ export const en = {
201
201
"textOverflow" : "Text Overflow" ,
202
202
"scrollbar" : "Show Scrollbars" ,
203
203
"siderScrollbar" : "Show Scrollbars in Sider" ,
204
+ "mainScrollbar" : "Show Scrollbars in main content" ,
204
205
"siderRight" : "Show sider on the Right" ,
205
206
"siderWidth" : "Sider Width" ,
206
207
"siderWidthTooltip" : "Sider width supports percentages (%) and pixels (px)." ,
You can’t perform that action at this time.
0 commit comments