diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 19e821a8..5ae7257e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -124,10 +124,13 @@ int APIENTRY wWinMain( auto create_menu_item = [](const String& text) -> ListItem* { + auto text_block = TextBlock::Create(text); + text_block->GetLayoutParams()->width.alignment = Alignment::Start; + return CreateWithLayout<ListItem>( + LayoutSideParams::Stretch(Alignment::Center), LayoutSideParams::Content(Alignment::Start), - LayoutSideParams::Content(Alignment::Start), - ControlList{ TextBlock::Create(text) } + ControlList{ text_block } ); }; |