From 040a6c18f18100b825a56443a73aa1de64e4518c Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Oct 2018 01:09:35 +0800 Subject: Make text box use border delegate. Fix layout bug in margin container. --- src/main.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index e11fbbe0..7a105d79 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -153,9 +153,16 @@ int APIENTRY wWinMain( */ window.AddChild( - Button::Create( - {TextBlock::Create(L"Button")} - ) + Border::Create({ + MarginContainer::Create(Thickness(50, 50), { + LinearLayout::Create(LinearLayout::Orientation::Vertical, { + Button::Create({ + TextBlock::Create(L"Button") + }), + TextBox::Create() + }) + }) + }) ); window.Show(); -- cgit v1.2.3