diff --git a/pygame_gui/elements/ui_label.py b/pygame_gui/elements/ui_label.py index 245646b3..87a78f7e 100644 --- a/pygame_gui/elements/ui_label.py +++ b/pygame_gui/elements/ui_label.py @@ -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 = {}