Skip to content

Commit

Permalink
Merge pull request #621 from ZLLentz/fix_combobox_resize_crash
Browse files Browse the repository at this point in the history
FIX: formalize hotfix for resizing empty comboboxes
  • Loading branch information
ZLLentz authored Oct 9, 2024
2 parents 07fb0ed + f503653 commit 62aa6bc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
621 fix_combobox_resize_crash
#############################

API Breaks
----------
- N/A

Features
--------
- N/A

Bugfixes
--------
- Fix an issue where dynamic font scaling applied to a combobox
with no entries would raise an exception and close typhos.

Maintenance
-----------
- N/A

Contributors
------------
- zllentz
2 changes: 2 additions & 0 deletions typhos/dynamic_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def set_font_size() -> None:
)
for text in combo_options
]
if not font_sizes:
return
set_font_common(
widget=widget,
font_size=min(font_sizes),
Expand Down

0 comments on commit 62aa6bc

Please sign in to comment.