raylib: fix multilang dialog height (#36196)

* fix multilang dialog height

* clean up
master
Shane Smiskol 24 hours ago committed by GitHub
parent 222e880561
commit afc7ff1b7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/ui/widgets/option_dialog.py

@ -37,7 +37,7 @@ class MultiOptionDialog(Widget):
options_y = content_rect.y + TITLE_FONT_SIZE + ITEM_SPACING
options_h = content_rect.height - TITLE_FONT_SIZE - BUTTON_HEIGHT - 2 * ITEM_SPACING
view_rect = rl.Rectangle(content_rect.x, options_y, content_rect.width, options_h)
content_h = len(self.options) * (ITEM_HEIGHT + 10)
content_h = len(self.options) * (ITEM_HEIGHT + LIST_ITEM_SPACING)
list_content_rect = rl.Rectangle(content_rect.x, options_y, content_rect.width, content_h)
# Scroll and render options

Loading…
Cancel
Save