diff --git a/pygame_gui/elements/ui_text_box.py b/pygame_gui/elements/ui_text_box.py index c057d422..5a6547cb 100644 --- a/pygame_gui/elements/ui_text_box.py +++ b/pygame_gui/elements/ui_text_box.py @@ -289,7 +289,8 @@ def rebuild(self): self.ui_manager, self.ui_container, parent_element=self, - visible=self.visible) + visible=self.visible, + anchors=self.anchors) self.join_focus_sets(self.scroll_bar) else: # we don't need a scroll bar, make sure our text box is aligned to the top