From fc91c22747fac8e53c4284da0e7ea329aaca7021 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 6 Oct 2022 18:10:39 +0000 Subject: [PATCH] remove special controls from SimpleWindow column count --- src/kiss_flixel/SimpleWindow.kiss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kiss_flixel/SimpleWindow.kiss b/src/kiss_flixel/SimpleWindow.kiss index cd31706..d6076f6 100644 --- a/src/kiss_flixel/SimpleWindow.kiss +++ b/src/kiss_flixel/SimpleWindow.kiss @@ -107,6 +107,8 @@ (+= nextControlY control.height) // 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))] + (doFor c [xText columnText leftText rightText] + (when c (columnControls.remove c))) (setNth columnWidths -1 (max (+ control.width textSize) (last columnWidths))) (when (and columnControls (= 0 (% columnControls.length controlsPerColumn))) (set nextControlY 0)