From 6d8ae401f3a76ac2ded00bdeaa4b24ba16da6f9b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 15 Feb 2016 22:58:58 +0200 Subject: [PATCH] Minor changes on rules. --- src/uxbox/ui/workspace/rules.cljs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/uxbox/ui/workspace/rules.cljs b/src/uxbox/ui/workspace/rules.cljs index 8e6e00f62..45fedbd21 100644 --- a/src/uxbox/ui/workspace/rules.cljs +++ b/src/uxbox/ui/workspace/rules.cljs @@ -98,8 +98,8 @@ (range 0 (- width start-width step-padding) step-size))] (html [:svg.horizontal-rule - {:width 3000 - :height 3000} + {:width wb/viewport-width + :height 20} [:g [:rect {:x step-padding :y 0 :width width :height step-padding :fill "#bab7b7"}] [:rect {:x 0 :y 0 :width step-padding :height step-padding :fill "#bab7b7"}]] @@ -121,10 +121,14 @@ (range 0 (- height start-height step-padding) step-size))] (html [:svg.vertical-rule - {:width 3000 - :height 3000} + {:width 20 + :height wb/viewport-height} [:g - [:rect {:x 0 :y step-padding :height height :width step-padding :fill "#bab7b7"}] + [:rect {:x 0 + :y step-padding + :height height + :width step-padding + :fill "#bab7b7"}] (for [tick ticks :let [pos (* (+ tick start-height) zoom)]] (v-line pos tick))]])))