2023-06-30 15:53:17 +02:00
|
|
|
diff --git chrome/browser/ui/views/profiles/profile_menu_view_base.cc chrome/browser/ui/views/profiles/profile_menu_view_base.cc
|
2024-09-27 16:15:44 +02:00
|
|
|
index 06d73cdced8d9..727424e433cf4 100644
|
2023-06-30 15:53:17 +02:00
|
|
|
--- chrome/browser/ui/views/profiles/profile_menu_view_base.cc
|
|
|
|
+++ chrome/browser/ui/views/profiles/profile_menu_view_base.cc
|
2024-09-27 16:15:44 +02:00
|
|
|
@@ -1088,8 +1088,8 @@ int ProfileMenuViewBase::GetMaxHeight() const {
|
2023-06-30 15:53:17 +02:00
|
|
|
->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
|
2024-08-26 14:44:25 +02:00
|
|
|
index 869d1f51700a1..ace1e3b9864be 100644
|
2023-06-30 15:53:17 +02:00
|
|
|
--- ui/views/style/platform_style_mac.mm
|
|
|
|
+++ ui/views/style/platform_style_mac.mm
|
2023-08-09 23:17:17 +02:00
|
|
|
@@ -43,7 +43,7 @@ const bool PlatformStyle::kTableViewSupportsKeyboardNavigationByCell = false;
|
2023-06-30 15:53:17 +02:00
|
|
|
const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow = true;
|
|
|
|
const bool PlatformStyle::kUseRipples = false;
|
|
|
|
const bool PlatformStyle::kInactiveWidgetControlsAppearDisabled = true;
|
2024-08-26 14:44:25 +02:00
|
|
|
-const bool PlatformStyle::kAdjustBubbleIfOffscreen = true;
|
|
|
|
+const bool PlatformStyle::kAdjustBubbleIfOffscreen = false;
|
2023-06-30 15:53:17 +02:00
|
|
|
const View::FocusBehavior PlatformStyle::kDefaultFocusBehavior =
|
|
|
|
View::FocusBehavior::ACCESSIBLE_ONLY;
|
|
|
|
|