Skip to content

GUI: fix clipped Treeview rows on Windows with display scaling - #10

Merged
abrignoni merged 1 commit into
abrignoni:mainfrom
charpy4n6:fix-treeview-row-height-hidpi
Nov 5, 2026
Merged

abrignoni merged 1 commit into
abrignoni:mainfrom
charpy4n6:fix-treeview-row-height-hidpi

Conversation

@charpy4n6

Copy link
Copy Markdown
Contributor

Problem

On Windows with display scaling above 100%, every Treeview (hive picker, key tree, values table, timeline) shows clipped, squished rows. _dpi_aware() makes the process DPI aware, so Tk scales fonts up, but ttk.Treeview keeps its fixed ~20px row height.

Fix

In Window._build(), set the Treeview style's rowheight from the default/text font's linespace + 6px. At 100% scaling this is about the same as the default; at higher scaling the rows grow with the font.

Testing

  • python regfprobe_gui.py --selfcheck passes
  • Checked on Windows 11 with display scaling turned on (row height becomes 38px): hive picker and SAM tree/values are readable

🤖 Generated with Claude Code

…Windows

_dpi_aware() makes the process DPI aware, so Tk scales fonts up at >100%
display scaling, but ttk.Treeview keeps its fixed ~20px row height. Rows in
the hive picker, key tree, values table and timeline were clipped. Set the
Treeview rowheight from the default font's linespace.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni merged commit 44ff3bc into abrignoni:main Nov 5, 2026
8 checks passed
@abrignoni abrignoni mentioned this pull request Nov 5, 2026
@charpy4n6 charpy4n6 mentioned this pull request Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants