diff --git a/src/gui_2.py b/src/gui_2.py index 463d095..b594d99 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -876,11 +876,11 @@ class App: if opened: if exp: avail = imgui.get_content_region_avail().y - # Determine how many sections will render files_hdr = imgui.collapsing_header("Files") shots_hdr = imgui.collapsing_header("Screenshots") num_open = (1 if files_hdr else 0) + (1 if shots_hdr else 0) - section_h = avail / max(num_open, 1) + section_h = avail / max(num_open, 1) if num_open > 0 else avail + section_h = max(section_h, 100) # BEGIN Files section if files_hdr: self._render_files_panel(section_h - 80)