Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Feb 12, 2023
1 parent 4118e0b commit 98e5af3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygame_menu/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ def get_rect(wid: 'Widget') -> 'pygame.Rect':
min_x = min(min_x, x_coord - padding[3] - sm_left)
min_y = min(min_y, y_coord - padding[0])

# Adds scrollbar thickess if not ignored
# Restore the discounted scrollbar thickness
if self._theme.widget_alignment_ignore_scrollbar_thickness:
x_coord += self._get_scrollbar_thickness()[1] / 2

Expand Down
2 changes: 1 addition & 1 deletion pygame_menu/themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Theme(object):
:type title_updates_pygame_display: bool
:param widget_alignment: Widget default `alignment <https://pygame-menu.readthedocs.io/en/latest/_source/themes.html#alignment>`_. See :py:mod:`pygame_menu.locals`
:type widget_alignment: str
:param widget_alignment_ignore_scrollbar_thickness: Position ignores the scrollbar thickness. If false (default value), the position considers if the scrollbar is displayed or not
:param widget_alignment_ignore_scrollbar_thickness: Widget positioning ignores the scrollbar thickness. If ``True``, the widgets only consider the menu size, ignoring the thickness of the visible scrollbars
:type widget_alignment_ignore_scrollbar_thickness: bool
:param widget_background_color: Background color of a widget, it can be a color, ``None`` (transparent), or a BaseImage object. Background fills the entire widget + the padding
:type widget_background_color: tuple, list, str, int, :py:class:`pygame.Color`, :py:class:`pygame_menu.baseimage.BaseImage`, None
Expand Down

0 comments on commit 98e5af3

Please sign in to comment.