Files
cef/patch/patches/mac_platform_style_bubble_893292.patch
Marshall Greenblatt e7320793b6 Update to Chromium version 136.0.7103.0 (#1440670)
- Win: Update to VS 2022 17.13.4 and WinSDK 10.0.26100.3323
2025-04-07 15:38:21 -04:00

29 lines
1.5 KiB
Diff

diff --git chrome/browser/ui/views/profiles/profile_menu_view_base.cc chrome/browser/ui/views/profiles/profile_menu_view_base.cc
index 541f4be99633e..bbfda1b3d9b59 100644
--- chrome/browser/ui/views/profiles/profile_menu_view_base.cc
+++ chrome/browser/ui/views/profiles/profile_menu_view_base.cc
@@ -1231,8 +1231,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.h ui/views/style/platform_style.h
index 1e9785672f767..21ff435390562 100644
--- ui/views/style/platform_style.h
+++ ui/views/style/platform_style.h
@@ -84,7 +84,7 @@ class VIEWS_EXPORT PlatformStyle {
// Default setting at bubble creation time for whether arrow will be adjusted
// for bubbles going off-screen to bring more bubble area into view. Linux
// clips bubble windows that extend outside their parent window bounds.
- static constexpr bool kAdjustBubbleIfOffscreen = !BUILDFLAG(IS_LINUX);
+ static constexpr bool kAdjustBubbleIfOffscreen = BUILDFLAG(IS_WIN);
// Default focus behavior on the platform.
static constexpr View::FocusBehavior kDefaultFocusBehavior =