From f099e0f90d316d73bdfd636ea15fc612a931f530 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 24 Jan 2020 12:39:48 +0100 Subject: [PATCH] :bug: Fix unexpected behavior on selection controls on non-rect like shapes. --- frontend/src/uxbox/main/ui/workspace/selection.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/uxbox/main/ui/workspace/selection.cljs b/frontend/src/uxbox/main/ui/workspace/selection.cljs index 1747fc4b1d..6182de4784 100644 --- a/frontend/src/uxbox/main/ui/workspace/selection.cljs +++ b/frontend/src/uxbox/main/ui/workspace/selection.cljs @@ -122,7 +122,7 @@ (mf/defc controls [{:keys [shape zoom on-resize on-rotate] :as props}] - (let [{:keys [x y width height rotation]} shape + (let [{:keys [x y width height rotation]} (geom/shape->rect-shape shape) radius (if (> (max width height) handler-size-threshold) 6.0 4.0) transform (geom/rotation-matrix shape)] [:g.controls {:transform transform}