From 4c99280c4a786e1c701bfddeb616bd7e7dd4aa87 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 25 Feb 2020 21:01:42 +0100 Subject: [PATCH] :bug: Set proper shape vertical ordering. --- frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs | 2 +- frontend/src/uxbox/main/ui/workspace/viewport.cljs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs b/frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs index 4119c78709..67b0abd13e 100644 --- a/frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs +++ b/frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs @@ -233,7 +233,7 @@ i/arrow-slide]] (when-not collapsed? [:ul - (for [[index shape] (reverse shapes)] + (for [[index shape] shapes] [:& layer-item {:shape shape :selected selected :index index diff --git a/frontend/src/uxbox/main/ui/workspace/viewport.cljs b/frontend/src/uxbox/main/ui/workspace/viewport.cljs index 55b13a4cc2..35bef155c1 100644 --- a/frontend/src/uxbox/main/ui/workspace/viewport.cljs +++ b/frontend/src/uxbox/main/ui/workspace/viewport.cljs @@ -154,8 +154,8 @@ (for [item canvas] [:& canvas-wrapper {:shape item :key (:id item) - :childs (get shapes (:id item))}]) - (for [item (get shapes nil)] + :childs (reverse (get shapes (:id item)))}]) + (for [item (reverse (get shapes nil))] [:& shape-wrapper {:shape item :key (:id item)}])]))