From 48b38281a6258052e3c8b62e49bdb7f84cf2beb2 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sat, 23 Jan 2016 22:10:52 +0200 Subject: [PATCH] Start using outer-rect function on selrect component. --- src/uxbox/ui/workspace/selrect.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/uxbox/ui/workspace/selrect.cljs b/src/uxbox/ui/workspace/selrect.cljs index b9e324c22..c56b09154 100644 --- a/src/uxbox/ui/workspace/selrect.cljs +++ b/src/uxbox/ui/workspace/selrect.cljs @@ -49,8 +49,7 @@ (defn shapes-selrect-render [own shapes] (when (seq shapes) - (let [shapes (map sh/resolve-position shapes) - {:keys [width height x y]} (sh/group-size-and-position shapes)] + (let [{:keys [width height x y]} (sh/outer-rect shapes)] (html [:g.controls [:rect {:x x :y y :width width :height height :stroke-dasharray "5,5"