Skip to content

Commit 94b1935

Browse files
authored
Merge pull request #656 from gbbofh/fix-label-rect
Fix: Replace 'relative_rect' with 'rel_rect' in UILabel.__init__
2 parents 4caccad + b629a4a commit 94b1935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygame_gui/elements/ui_label.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(self, relative_rect: Union[RectLike, Coordinate],
6464
object_id=object_id,
6565
element_id=['label'])
6666

67-
self.dynamic_dimensions_orig_top_left = relative_rect.topleft
67+
self.dynamic_dimensions_orig_top_left = rel_rect.topleft
6868

6969
self.text = text
7070
self.text_kwargs = {}

0 commit comments

Comments
 (0)