Browse Source

fix: incorrect WCO tooltip in RTL (#45424)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <[email protected]>
trop[bot] 2 months ago
parent
commit
2c96e1612e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      shell/browser/ui/views/win_caption_button_container.cc

+ 2 - 1
shell/browser/ui/views/win_caption_button_container.cc

@@ -39,7 +39,8 @@ std::unique_ptr<WinCaptionButton> CreateCaptionButton(
 }
 
 bool HitTestCaptionButton(WinCaptionButton* button, const gfx::Point& point) {
-  return button && button->GetVisible() && button->bounds().Contains(point);
+  return button && button->GetVisible() &&
+         button->GetMirroredBounds().Contains(point);
 }
 
 }  // anonymous namespace