Skip to content

Commit

Permalink
Fix panel margins
Browse files Browse the repository at this point in the history
fixes #607
  • Loading branch information
MyreMylar committed Nov 3, 2024
1 parent ca740d1 commit 0a8e9a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygame_gui/elements/ui_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def __init__(self,
else:
self.container_margins = margins

container_rect = pygame.Rect(self.relative_rect.left,
self.relative_rect.top,
container_rect = pygame.Rect(self.relative_rect.left + self.container_margins['left'],
self.relative_rect.top + self.container_margins['top'],
self.relative_rect.width - (self.container_margins['left'] +
self.container_margins['right']),
self.relative_rect.height - (self.container_margins['top'] +
Expand Down

0 comments on commit 0a8e9a0

Please sign in to comment.