Skip to content

Commit

Permalink
fix tool tip position bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar committed May 19, 2024
1 parent db7bef7 commit c1ebf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygame_gui/elements/ui_tool_tip.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def find_valid_position(self, position: Coordinate) -> bool:
return True
else:
if self.rect.bottom > window_rect.bottom:
self.rect.bottom = int(position[0] - self.hover_distance_from_target[1])
self.rect.bottom = int(position[1] - self.hover_distance_from_target[1])
if self.rect.right > window_rect.right:
self.rect.right = window_rect.right - self.hover_distance_from_target[0]
if self.rect.left < window_rect.left:
Expand Down

0 comments on commit c1ebf20

Please sign in to comment.