10000 Merge pull request #22078 from daniilS/tk_toolbar_tooltips · matplotlib/matplotlib@dfd8591 · GitHub
[go: up one dir, main page]

Skip to content

Commit dfd8591

Browse files
authored
Merge pull request #22078 from daniilS/tk_toolbar_tooltips
Prevent tooltips from overlapping buttons in NavigationToolbar2Tk (fixes issue mentioned in #22028)
2 parents 5b2ab10 + 6629ce6 commit dfd8591

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
@@ -764,7 +764,7 @@ def showtip(self, text):
764764
if self.tipwindow or not self.text:
765765
return
766766
x, y, _, _ = self.widget.bbox("insert")
767-
x = x + self.widget.winfo_rootx() + 27
767+
x = x + self.widget.winfo_rootx() + self.widget.winfo_width()
768768
y = y + self.widget.winfo_rooty()
769769
self.tipwindow = tw = tk.Toplevel(self.widget)
770770
tw.wm_overrideredirect(1)

0 commit comments

Comments
 (0)
0