Actually hide menubar area when menu is autohidden
This was a regression introduced in 638eae10.
	
	
This commit is contained in:
		
					parent
					
						
							
								81879f8f8a
							
						
					
				
			
			
				commit
				
					
						dcf6c52f51
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1267,7 +1267,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); | ||||
|   } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Birunthan Mohanathas
				Birunthan Mohanathas