Skip to content

Commit

Permalink
CommonClient: fix hint tab overlapping (ArchipelagoMW#2957)
Browse files Browse the repository at this point in the history
Co-authored-by: Remy Jette <remy@remyjette.com>
  • Loading branch information
Silvris and remyjette authored Mar 22, 2024
1 parent 44988d4 commit ca549df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kvui.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,12 @@ def refresh_hints(self, hints):
def hint_sorter(element: dict) -> str:
return ""

def fix_heights(self):
"""Workaround fix for divergent texture and layout heights"""
for element in self.children[0].children:
max_height = max(child.texture_size[1] for child in element.children)
element.height = max_height


class E(ExceptionHandler):
logger = logging.getLogger("Client")
Expand Down

0 comments on commit ca549df

Please sign in to comment.