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]
|
||||
(if (> n 0)
|
||||
(do
|
||||
(def height (/ h n))
|
||||
(def height (math/trunc (/ h n)))
|
||||
(defn rows [n]
|
||||
(if (= n 0) [] (let [Y (- (+ y h) (* n height))]
|
||||
(tuple/join [[x Y w height]]
|
||||
|
||||
Reference in New Issue
Block a user