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

Commit

Permalink
Merge pull request #198 from brave/fix-linux-menu
Browse files Browse the repository at this point in the history
Menu is now properly hidden when toggled (only used in Brave for Linux).
  • Loading branch information
bsclifton authored May 17, 2017
2 parents 89405c8 + 4b04c7b commit 01a9dc5
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 01a9dc5

Please sign in to comment.