Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99b26be

Browse files
authored
Merge pull request #22151 from meeseeksmachine/auto-backport-of-pr-22078-on-v3.5.x
Backport PR #22078 on branch v3.5.x (Prevent tooltips from overlapping buttons in NavigationToolbar2Tk (fixes issue mentioned in #22028))
2 parents e6bf1bf + 49a5687 commit 99b26be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def showtip(self, text):
751751
if self.tipwindow or not self.text:
752752
return
753753
x, y, _, _ = self.widget.bbox("insert")
754-
x = x + self.widget.winfo_rootx() + 27
754+
x = x + self.widget.winfo_rootx() + self.widget.winfo_width()
755755
y = y + self.widget.winfo_rooty()
756756
self.tipwindow = tw = tk.Toplevel(self.widget)
757757
tw.wm_overrideredirect(1)

0 commit comments

Comments
 (0)