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