diff --git chrome/browser/ui/views/profiles/profile_menu_view_base.cc chrome/browser/ui/views/profiles/profile_menu_view_base.cc index ff271cd2ae544..f6aa2a185348f 100644 --- chrome/browser/ui/views/profiles/profile_menu_view_base.cc +++ chrome/browser/ui/views/profiles/profile_menu_view_base.cc @@ -1021,8 +1021,8 @@ int ProfileMenuViewBase::GetMaxHeight() const { ->GetDisplayNearestPoint(anchor_rect.CenterPoint()) .work_area(); int available_space = screen_space.bottom() - anchor_rect.bottom(); -#if BUILDFLAG(IS_WIN) - // On Windows the bubble can also be show to the top of the anchor. +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) + // On Windows and macOS the bubble can also be show to the top of the anchor. available_space = std::max(available_space, anchor_rect.y() - screen_space.y()); #endif diff --git ui/views/style/platform_style_mac.mm ui/views/style/platform_style_mac.mm index 753e5b22ae10f..2d513bfb2e8e7 100644 --- ui/views/style/platform_style_mac.mm +++ ui/views/style/platform_style_mac.mm @@ -43,7 +43,7 @@ const bool PlatformStyle::kTableViewSupportsKeyboardNavigationByCell = false; const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow = true; const bool PlatformStyle::kUseRipples = false; const bool PlatformStyle::kInactiveWidgetControlsAppearDisabled = true; -const bool PlatformStyle::kAdjustBubbleIfOffscreen = false; +const bool PlatformStyle::kAdjustBubbleIfOffscreen = true; const View::FocusBehavior PlatformStyle::kDefaultFocusBehavior = View::FocusBehavior::ACCESSIBLE_ONLY;