ui: reset cached height when description changes (#36454)

reset cached height when description changes
pull/36458/head
Dean Lee 2 weeks ago committed by GitHub
parent 7da36b2470
commit 534f096bb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/ui/widgets/list_view.py

@ -330,6 +330,8 @@ class ListItem(Widget):
# do callback first in case receiver changes description
if self.description_visible and self.description_opened_callback is not None:
self.description_opened_callback()
# Call _update_state to catch any description changes
self._update_state()
content_width = int(self._rect.width - ITEM_PADDING * 2)
self._rect.height = self.get_item_height(self._font, content_width)

Loading…
Cancel
Save