We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf5d21fa commita626975Copy full SHA for a626975
client/packages/lowcoder/src/layout/gridLayout.tsx
@@ -213,15 +213,15 @@ class GridLayout extends React.Component<GridLayoutProps, GridLayoutState> {
213
*@return {String} Container height in pixels.
214
*/
215
containerHeight():string{
216
-const{ margin, rowHeight, fixedRowCount}=this.propsasRequired<GridLayoutProps>;
+const{ margin, rowHeight, fixedRowCount, isCanvas}=this.propsasRequired<GridLayoutProps>;
217
const{ extraHeight, emptyRows}=this.props;
218
constpositionParams=genPositionParams(this.props);
219
-
220
const{ containerPadding}=positionParams;
221
constlayout=this.getUILayout(undefined,true);
+
222
letnbRow=bottom(layout);
223
-if(!_.isNil(emptyRows)&&(_.size(layout)===0||fixedRowCount)){
224
-nbRow=emptyRows;// === Infinity ? 0 : emptyRows;
+if(!_.isNil(emptyRows)&&(_.size(layout)===0||(fixedRowCount&&isCanvas))){
+nbRow=emptyRows;
225
}
226
constcontainerHeight=Math.max(
227
nbRow*rowHeight+(nbRow-1)*margin[1]+containerPadding[1]*2