Repository: MyreMylar/pygame_gui (python)

Issue:
UIScrollingContainer sets dimensions instead of position
**Describe the bug**
In the version 0.6.8 that I am using, I spotted that in the `pygame_gui.elements.ui_scrolling_container` file, on line 147 in the `set_position` function, instead of updating the position, it updates the dimensions. (see screenshot below)

**Expected behaviour**
`self._root_container.set_position(position)` to be called instead of `self._root_container.set_dimensions(position)`

**Screenshots**
<img width="598" alt="image" src="https://github.com/MyreMylar/pygame_gui/assets/74864888/b73ed331-b39d-42e0-8275-cadcd38907b0">

**Version:**
 - Pygame GUI version 0.6.8


Pull request description:
Fix UIScrollingContainer .set_position()
fixes #481

Patch:
diff --git a/pygame_gui/elements/ui_scrolling_container.py b/pygame_gui/elements/ui_scrolling_container.py
index 03294de..f51aa56 100644
--- a/pygame_gui/elements/ui_scrolling_container.py
+++ b/pygame_gui/elements/ui_scrolling_container.py
@@ -146,7 +146,7 @@ class UIScrollingContainer(UIElement, IContainerLikeInterface):
         """
 
         super().set_position(position)
-        self._root_container.set_dimensions(position)
+        self._root_container.set_position(position)
 
     def set_relative_position(self, position: Union[pygame.math.Vector2,
                                                     Tuple[int, int],


Test patch:
diff --git a/tests/test_elements/test_ui_scrolling_container.py b/tests/test_elements/test_ui_scrolling_container.py
index a3a9397..0f07096 100644
--- a/tests/test_elements/test_ui_scrolling_container.py
+++ b/tests/test_elements/test_ui_scrolling_container.py
@@ -53,6 +53,7 @@ class TestUIScrollingContainer:
         container.set_position((50, 50))
 
         assert container.rect.topleft == (50, 50)
+        assert container._root_container.rect.size == (200, 200)
 
     def test_set_relative_position(self, _init_pygame, default_ui_manager,
                                    _display_surface_return_none):