Files
cef/patch/patches/mac_platform_style_bubble_893292.patch
T
Marshall Greenblatt 33624e6bc2 Update to Chromium version 154.0.8037.0
- Windows SDK 10.0.28000.2270 is now required
- CefRegisterExtension is deprecated due to https://crbug.com/40347662
2026-09-06 13:10:22 -04:00

29 lines
1.6 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 a84721e68ab5953b62fbfc335165cb8c5245947d..85051fbd798dd730c9aee0954b84f6e588ca79d5 100644
--- chrome/browser/ui/views/profiles/profile_menu_view_base.cc
+++ chrome/browser/ui/views/profiles/profile_menu_view_base.cc
@@ -840,8 +840,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 1e9785672f767e32dc20af93036971afaaec3b63..21ff43539056293e170d306bac004e85b8841c84 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 =