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:
parent
b899320e9f
commit
d9b4871f0c
2 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||||
|
|
|
@ -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 {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue