SimpleWindow.nextColumn()

This commit is contained in:
2025-12-24 13:20:03 -07:00
parent bb7e4ad5d1
commit 7b81f24a7d

View File

@@ -355,12 +355,13 @@
(+= newControlWidth selectionMarker.width textSize))
(setNth columnWidths -1 (max newControlWidth (last columnWidths)))
(when (and columnControls (= 0 (% columnControls.length controlsPerColumn)))
(set nextControlY 0)
(when title (+= nextControlY control.height))
(+= nextControlX (last columnWidths))
(columnWidths.push 0)
(when (> (apply + columnWidths) width)
(makeScrollArrows))))))
(defAndCall method nextColumn
(set nextControlY 0)
(when title (+= nextControlY titleText.height))
(+= nextControlX (last columnWidths))
(columnWidths.push 0)
(when (> (apply + columnWidths) width)
(makeScrollArrows)))))))
control)
(prop &mut :Bool _useScrolling false)