Skip to content

Commit

Permalink
Add starting_height to UIImage
Browse files Browse the repository at this point in the history
fixes #491
  • Loading branch information
MyreMylar committed Apr 8, 2024
1 parent 7473542 commit 6dcdac6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pygame_gui/elements/ui_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ def __init__(self,
parent_element: Optional[UIElement] = None,
object_id: Optional[Union[ObjectID, str]] = None,
anchors: Optional[Dict[str, Union[str, UIElement]]] = None,
visible: int = 1):
visible: int = 1,
*,
starting_height: int = 1,):

super().__init__(relative_rect, manager, container,
starting_height=1,
starting_height=starting_height,
layer_thickness=1,
anchors=anchors,
visible=visible,
Expand Down

0 comments on commit 6dcdac6

Please sign in to comment.