From bb9dd39d159b5c203d849663dc04283f8b28eb1e Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Fri, 24 Feb 2023 14:34:22 +0000 Subject: [PATCH] added more props --- .../app/src/components/RenderWindow/index.jsx | 51 +++++++++++++------ 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/packages/app/src/components/RenderWindow/index.jsx b/packages/app/src/components/RenderWindow/index.jsx index 214e9cad..a1d1188d 100755 --- a/packages/app/src/components/RenderWindow/index.jsx +++ b/packages/app/src/components/RenderWindow/index.jsx @@ -188,24 +188,43 @@ class DefaultWindowRender extends React.Component { position, }) }} - dragHandleClassName="window_topbar" - minWidth={this.props.minWidth ?? "300px"} - minHeight={this.props.minHeight ?? "200px"} + minWidth={ + this.props.minWidth + } + minHeight={ + this.props.minHeight + } + enableResizing={ + this.props.enableResizing ?? true + } + disableDragging={ + this.props.disableDragging ?? false + } + dragHandleClassName={ + this.props.dragHandleClassName ?? "window_topbar" + } + bounds={ + this.props.bounds ?? "#root" + } > -
-
-
{this.props.id}
-
{this.renderActions()}
-
+ { + this.props.useWrapper + ?
+
+
{this.props.id}
+
{this.renderActions()}
+
-
{this.getComponentRender()}
-
+
{this.getComponentRender()}
+
+ : this.props.children + } ) }