Skip to content

Fix maximized title-bar search clipping (#5013) and Discover hero-search overlap (#5014)#5054

Merged
Gabriel Dufresne (GabrielDuf) merged 3 commits into
mainfrom
fix/5013-maximized-titlebar-clip
Jul 7, 2026
Merged

Fix maximized title-bar search clipping (#5013) and Discover hero-search overlap (#5014)#5054
Gabriel Dufresne (GabrielDuf) merged 3 commits into
mainfrom
fix/5013-maximized-titlebar-clip

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

Fixes two Windows title-bar / search layout bugs in the Avalonia UI, plus a small related spacing cleanup.

#5013 — Global search box clipped when maximized

The WM_NCCALCSIZE handler returns 0 to claim the whole window rect as the client area (the borderless extended-client look). When the window is maximized, Windows positions it with the WS_THICKFRAME resize border offscreen (top-left near (-frame, -frame)), so claiming the full rect pushes the title bar's top few pixels off the monitor and clips the search pill against the top edge (worse at higher DPI).

While maximized (IsZoomed), we now inset the client rect by the DPI-scaled frame thickness so it fills exactly the visible monitor; the full-rect extended client is kept when windowed. Verified via Win32: the maximized client top went from 6px offscreen → ~0.

#5014 — Discover search overlaps the package list header

On the Discover page the centred MegaQuery and the package list share one overlay cell. When a banner and the operations pane shrink the area, the MegaQuery lands on the DataGrid column headers and they bleed through it.

MegaQueryVisible is only true on Discover in the pristine empty-query state, where the list is already cleared — so the list container is now hidden while thequery is shown, and reappears (with results) as soon as the user types or submits.

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit cc7c33e into main Jul 7, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the fix/5013-maximized-titlebar-clip branch July 7, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Clipping Search Bar in certain windows ratio [BUG] Search bar on new UI is not correctly padded

2 participants