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
2 people authored and EmilyV99 committed Apr 15, 2024
1 parent d0b4613 commit 1e67eed
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 1e67eed

Please sign in to comment.