@@ -96,8 +96,7 @@ function ModuleLayoutView(props: IProps) {
9696 } ;
9797
9898 return (
99- < ScrollBar style = { { height : "100%" , margin : "0px" , padding : "0px" } } >
100- < CanvasView
99+ < CanvasView
101100 layout = { layout }
102101 items = { items }
103102 positionParams = { { ...positionParams , cols : parseInt ( defaultGrid ) } }
@@ -106,7 +105,6 @@ function ModuleLayoutView(props: IProps) {
106105 onLayoutChange = { onLayoutChange }
107106 extraHeight = "0px"
108107 />
109- </ ScrollBar >
110108 ) ;
111109}
112110
@@ -118,26 +116,28 @@ export class ModuleLayoutComp extends ModuleLayoutCompBase implements IContainer
118116 const rowCount = this . children . containerRowCount . getView ( ) ;
119117 return (
120118 < 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 >
141141 </ div >
142142 ) ;
143143 }
0 commit comments