Skip to content

Commit

Permalink
Merge pull request #656 from gbbofh/fix-label-rect
Browse files Browse the repository at this point in the history
Fix: Replace 'relative_rect' with 'rel_rect' in UILabel.__init__
  • Loading branch information
MyreMylar authored Dec 29, 2024
2 parents 4caccad + b629a4a commit 94b1935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygame_gui/elements/ui_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self, relative_rect: Union[RectLike, Coordinate],
object_id=object_id,
element_id=['label'])

self.dynamic_dimensions_orig_top_left = relative_rect.topleft
self.dynamic_dimensions_orig_top_left = rel_rect.topleft

self.text = text
self.text_kwargs = {}
Expand Down

0 comments on commit 94b1935

Please sign in to comment.