Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Menu is now properly hidden when toggled (only used in Brave for Linux). #198

Merged
merged 1 commit into from
May 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion atom/browser/native_window_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,8 @@ void NativeWindowViews::HandleKeyboardEvent(
void NativeWindowViews::Layout() {
const auto size = GetContentsBounds().size();
const auto menu_bar_bounds =
menu_bar_ ? gfx::Rect(0, 0, size.width(), kMenuBarHeight) : gfx::Rect();
menu_bar_visible_ ? gfx::Rect(0, 0, size.width(), kMenuBarHeight)
: gfx::Rect();
if (menu_bar_) {
menu_bar_->SetBoundsRect(menu_bar_bounds);
}
Expand Down