@@ -96,8 +96,7 @@ function ModuleLayoutView(props: IProps) {
96
96
} ;
97
97
98
98
return (
99
- < ScrollBar style = { { height : "100%" , margin : "0px" , padding : "0px" } } >
100
- < CanvasView
99
+ < CanvasView
101
100
layout = { layout }
102
101
items = { items }
103
102
positionParams = { { ...positionParams , cols : parseInt ( defaultGrid ) } }
@@ -106,7 +105,6 @@ function ModuleLayoutView(props: IProps) {
106
105
onLayoutChange = { onLayoutChange }
107
106
extraHeight = "0px"
108
107
/>
109
- </ ScrollBar >
110
108
) ;
111
109
}
112
110
@@ -118,26 +116,28 @@ export class ModuleLayoutComp extends ModuleLayoutCompBase implements IContainer
118
116
const rowCount = this . children . containerRowCount . getView ( ) ;
119
117
return (
120
118
< div >
121
- < ModuleLayoutView
122
- positionParams = { this . children . positionParams . getView ( ) }
123
- containerSize = { this . children . containerSize . getView ( ) }
124
- containerView = { this . children . container . containerView ( {
125
- rowCount,
126
- isRowCountLocked,
127
- onRowCountChange : ( rowCount ) => {
128
- this . children . containerRowCount . dispatchChangeValueAction ( rowCount ) ;
129
- } ,
130
- } ) }
131
- onPositionParamsChange = { ( params ) => {
132
- setTimeout ( ( ) => this . children . positionParams . dispatchChangeValueAction ( params ) ) ;
133
- } }
134
- onLayoutChange = { ( layout ) => {
135
- this . children . containerSize . dispatchChangeValueAction ( {
136
- height : layout [ moduleContainerId ] . h ,
137
- width : layout [ moduleContainerId ] . w ,
138
- } ) ;
139
- } }
140
- />
119
+ < ScrollBar style = { { height : "100%" , margin : "0px" , padding : "0px" } } hidePlaceholder = { false } >
120
+ < ModuleLayoutView
121
+ positionParams = { this . children . positionParams . getView ( ) }
122
+ containerSize = { this . children . containerSize . getView ( ) }
123
+ containerView = { this . children . container . containerView ( {
124
+ rowCount,
125
+ isRowCountLocked,
126
+ onRowCountChange : ( rowCount ) => {
127
+ this . children . containerRowCount . dispatchChangeValueAction ( rowCount ) ;
128
+ } ,
129
+ } ) }
130
+ onPositionParamsChange = { ( params ) => {
131
+ setTimeout ( ( ) => this . children . positionParams . dispatchChangeValueAction ( params ) ) ;
132
+ } }
133
+ onLayoutChange = { ( layout ) => {
134
+ this . children . containerSize . dispatchChangeValueAction ( {
135
+ height : layout [ moduleContainerId ] . h ,
136
+ width : layout [ moduleContainerId ] . w ,
137
+ } ) ;
138
+ } }
139
+ />
140
+ </ ScrollBar >
141
141
</ div >
142
142
) ;
143
143
}
0 commit comments