1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-22 16:11:33 +00:00

Apply Flex arrange to each child separately

This commit is contained in:
uramer 2022-04-27 22:05:39 +02:00
parent b899320e9f
commit d9b4871f0c
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ render.registerRenderer('text', function(value, set, arg)
text = value, text = value,
textColor = util.color.rgb(1, 1, 1), textColor = util.color.rgb(1, 1, 1),
textSize = 15, textSize = 15,
textAlignV = ui.ALIGNMENT.Center, textAlignV = ui.ALIGNMENT.End,
}, },
events = { events = {
textChanged = async:callback(function(s) set(s) end), textChanged = async:callback(function(s) set(s) end),

View file

@ -115,7 +115,7 @@ local function renderGroup(group, global)
props = { props = {
horizontal = true, horizontal = true,
align = ui.ALIGNMENT.Start, align = ui.ALIGNMENT.Start,
arrange = ui.ALIGNMENT.Center, arrange = ui.ALIGNMENT.End,
}, },
content = ui.content { content = ui.content {
{ {
@ -166,7 +166,7 @@ local function renderPage(page)
props = { props = {
horizontal = true, horizontal = true,
align = ui.ALIGNMENT.Start, align = ui.ALIGNMENT.Start,
arrange = ui.ALIGNMENT.Center, arrange = ui.ALIGNMENT.End,
}, },
content = ui.content { content = ui.content {
{ {