Truncate heights so we aren't using fractional pixels in layout

This commit is contained in:
bluepython508
2026-02-12 16:06:14 +00:00
parent 4191f0871b
commit 9d882886ec

View File

@@ -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]]