Merge pull request #238 from DrChat/size_fix

Resize main window after attaching the menu
This commit is contained in:
Ben Vanik 2015-06-03 11:00:50 -07:00
commit 1e0c8e223d
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}