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

Commit

Permalink
Menu is now properly hidden when toggled (only used in Brave for Linux).
Browse files Browse the repository at this point in the history
Initial PR was done with #191 but I missed electron/electron@dcf6c52

Fixes brave/browser-laptop#8839

Auditors: @bbondy, @bridiver
  • Loading branch information
bsclifton committed May 17, 2017
1 parent 89405c8 commit 4b04c7b
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 4b04c7b

Please sign in to comment.