- {
+ if (setFocus) {
+ setFocus(props.widgetId);
+ e.stopPropagation();
+ }
+ }}
+ show={props.widgetId === isFocused && !isResizing}
style={{
display: isDragging ? "none" : "flex",
flexDirection: "column",
@@ -47,17 +94,21 @@ const DraggableComponent = (props: DraggableComponentProps) => {
top: props.style
? props.style.yPosition + props.style.yPositionUnit
: 0,
+ minWidth:
+ props.style.componentWidth + (props.style.widthUnit || "px"),
+ minHeight:
+ props.style.componentHeight + (props.style.heightUnit || "px"),
}}
>
-
-
+
+ {moveControlIcon}
-
-
+
+ {deleteControlIcon}
{props.children}
-
-