multi-line push button and keep focus on keyboard select

This commit is contained in:
Mikayla Fischler
2024-06-12 19:59:19 -04:00
parent 83ba6e3961
commit 09c44a6969
2 changed files with 30 additions and 17 deletions

View File

@@ -200,7 +200,7 @@ function element.new(args, constraint, child_offset_x, child_offset_y)
---@param next_y integer next line if no y was provided
function protected.prepare_template(offset_x, offset_y, next_y)
-- don't auto incrememnt y if inheriting height, that would cause an assertion
next_y = util.trinary(args.height == nil, 1, next_y)
next_y = util.trinary(args.height == nil and constraint == nil, 1, next_y)
-- record offsets in case there is a reposition
self.offset_x = offset_x