Truncate heights so we aren't using fractional pixels in layout
This commit is contained in:
@@ -313,7 +313,7 @@
|
|||||||
(defn layout/rows [n x y w h]
|
(defn layout/rows [n x y w h]
|
||||||
(if (> n 0)
|
(if (> n 0)
|
||||||
(do
|
(do
|
||||||
(def height (/ h n))
|
(def height (math/trunc (/ h n)))
|
||||||
(defn rows [n]
|
(defn rows [n]
|
||||||
(if (= n 0) [] (let [Y (- (+ y h) (* n height))]
|
(if (= n 0) [] (let [Y (- (+ y h) (* n height))]
|
||||||
(tuple/join [[x Y w height]]
|
(tuple/join [[x Y w height]]
|
||||||
|
|||||||
Reference in New Issue
Block a user