dosforge 0.9.53
dosforge v0.9.53
Fix: "Show log" now grows the window to make room for the panel
User-reported Windows GUI bug: clicking the Show log button in
the bottom status bar packed the log panel underneath the content
area but didn't grow the toplevel window to accommodate it. The
panel ended up clipped or pushed off-screen until the user manually
dragged the window taller. The hide path had the symmetric problem
(window stayed oversized after collapsing).
What changed
StatusBar.show_log and _toggle_log (in
src/dosforge/_gui/widgets.py) now call a new
_adjust_window_for_log_change helper that:
- Forces a Tk layout pass and reads the log holder's required
height (Text widget atheight=8lines + scrollbar + padding). - Reads the toplevel window's current geometry.
- Grows or shrinks the window height by the panel's required
height when toggling. - Caps the grown height at 95% of the screen height so the window
never disappears off the bottom (taskbar / dock stays visible).
The log panel itself is unchanged — same 8-line scrollable Text
widget, same Show log / Hide log / Copy log buttons.
Behavior matrix
| Action | v0.9.52 | v0.9.53 |
|---|---|---|
| First click "Show log" | Panel packed but clipped | Panel packed + window grows to fit |
| Click "Hide log" | Panel removed, window stays tall | Panel removed + window shrinks back |
| User has manually resized window taller before clicking show | Same broken (panel clipped if not tall enough) | Window grows the panel-height delta |
| Screen too short to fit panel | Window pushed off-screen | Capped at 95% of screen height |
Files changed
src/dosforge/_gui/widgets.py— added
_adjust_window_for_log_change; wired it intoshow_logand
_toggle_log.pyproject.toml+src/dosforge/__init__.py— 0.9.52 → 0.9.53.
Cross-platform note
Same widgets.py is used on both Windows and Linux GUIs. Tk's
winfo_screenheight + geometry work identically on both, so this
fix applies to Linux GUI users too (the Linux GUI is an optional
secondary launch surface; TUI is primary on Linux).
Carried forward
- v0.9.52 fix Windows-path ECHS-doubling of MBR start_chs
- v0.9.51 Windows GUI Combobox wheel + focus polish
- v0.9.50 stamp release artifacts with correct version