aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-10 22:11:05 +0800
committercrupest <crupest@outlook.com>2018-11-10 22:11:05 +0800
commit9cf812f77a879d5394a9158ce290f9d7e858de7d (patch)
tree83bbf3a45687be0a4f22840e295d988972de7b34 /src/main.cpp
parente5513daa53cb958b0c83d575c440f40aaf40f562 (diff)
downloadcru-9cf812f77a879d5394a9158ce290f9d7e858de7d.tar.gz
cru-9cf812f77a879d5394a9158ce290f9d7e858de7d.tar.bz2
cru-9cf812f77a879d5394a9158ce290f9d7e858de7d.zip
Refactor layout invalidation system.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 269da573..f5eb655a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -139,8 +139,7 @@ int APIENTRY wWinMain(
popup->AddChild(menu);
- popup->Relayout();
- popup->SetClientSize(menu->GetSize());
+ popup->SetSizeFitContent();
popup->Show();
});