Resize main window after attaching the menu
This commit is contained in:
parent
954b67df78
commit
94a075d581
|
@ -50,7 +50,7 @@ bool MainWindow::Initialize() {
|
||||||
if (!PlatformWindow::Initialize()) {
|
if (!PlatformWindow::Initialize()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Resize(1280, 720);
|
|
||||||
UpdateTitle();
|
UpdateTitle();
|
||||||
on_key_down.AddListener([this](KeyEvent& e) {
|
on_key_down.AddListener([this](KeyEvent& e) {
|
||||||
bool handled = true;
|
bool handled = true;
|
||||||
|
@ -94,11 +94,10 @@ bool MainWindow::Initialize() {
|
||||||
|
|
||||||
main_menu_.AddChild(std::move(file));
|
main_menu_.AddChild(std::move(file));
|
||||||
|
|
||||||
auto debug =
|
|
||||||
std::make_unique<PlatformMenu>(MenuItem::Type::kPopup, L"&Debug");
|
|
||||||
|
|
||||||
SetMenu(&main_menu_);
|
SetMenu(&main_menu_);
|
||||||
|
|
||||||
|
Resize(1280, 720);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue