mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-04-27 00:48:45 +02:00
29 lines
1.5 KiB
Diff
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 dab4e4299c95b..4a5dbf95d5be1 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 =
|