fix column positioning in SimpleWindow
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
// TODO controls that aren't the same height as text will be able to vertically overflow
|
// TODO controls that aren't the same height as text will be able to vertically overflow
|
||||||
(let [columnControls (controls.members.slice (if title 1 0))]
|
(let [columnControls (controls.members.slice (if title 1 0))]
|
||||||
(when (and columnControls (= 0 (% columnControls.length controlsPerColumn)))
|
(when (and columnControls (= 0 (% columnControls.length controlsPerColumn)))
|
||||||
(set nextControlY y)
|
(set nextControlY 0)
|
||||||
(when title (+= nextControlY control.height))
|
(when title (+= nextControlY control.height))
|
||||||
(+= nextControlX (apply max
|
(+= nextControlX (apply max
|
||||||
(for control (last (groups columnControls controlsPerColumn))
|
(for control (last (groups columnControls controlsPerColumn))
|
||||||
|
|||||||
Reference in New Issue
Block a user