Hardcoded popout dimensions vs dynamic content (magic numbers, no implicit sizing) #23
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The popout uses fixed magic numbers:
popoutWidth: 360popoutHeight: 400ListViewheight capped atMath.min(..., 200)Content height is dynamic (number of peers, font size, DPI scaling). The popout either wastes space on short/empty lists or artificially clips long ones. No use of implicit sizing,
Thememetrics, orLayoutto adapt to content.Impact
The widget looks inconsistent across different peer counts, font sizes, and screen DPIs. The layout is fragile and requires manual tuning instead of responding to actual content.
Yes! The popout size and scroll behavior could use some refinement generally. For most users, it can probably dynamically size to fit the content. However, there should be some maximum size.
Additionally, if the content needs to scroll, there needs to be some visual indicator (i.e., a scroll bar on the right) to indicate that there is more off-screen.
FYI from cross-model audit (gemini-3.1-pro-preview) + research:
horizontalBarPillandverticalBarPillreturn rawRow/Columnwithout an explicitItemwrapper that setsimplicitWidth/implicitHeight. While Qt positioners calculate implicit sizes automatically, returning them directly from aComponentcan cause layout measurement issues in some shell layout engines.This is another instance of the same class of defensive QML hygiene issues seen in #18, #19, and #32.
See also #18, #19, #32 — related QML layout/MouseArea fragility.
Hardcoded popout dimensions addressed via implicit sizing where possible. Merged to vibes.
Resolved via merge
daab237. The plugin is confirmed working by @jtmorris. Human code review required before merging to testing.