Skip to content

Conversation

@apman
Copy link
Contributor

@apman apman commented Dec 20, 2025


❗ ❗ (Slightly) Braking Change! Discuss with Xavier before merging! ❗ ❗


This fixes a number of inconsistencies across MacOS controls in how they respond to explicit height settings.

image image

Before: some controls did not respond at all, some grew to the set size but lost their margins, potentially leading to focus highlight being cut off, some grew overall to the requested size leaving room for the margins (so the visible size is 3px less)

After: I have now taken the latter approach for all controls.

While it might seem slightly confusing that a "30px" control has a visible height of 27px, it guarantees that the control is self-contained and won't visually bleed over other controls or get clipped unexpectedly.

Consumers will need to account for the margin (e.g. set Height="33" to achieve 30 for the unfocussed visual appearance), or don't set a height at all and let the theme dictate the natural size (which is usually the best practice).

@apman apman force-pushed the MacOS/inconsistent-fixed-height-behaviour branch from 704e2c7 to 2b4439e Compare December 20, 2025 05:25
@apman apman force-pushed the MacOS/inconsistent-fixed-height-behaviour branch from 2b4439e to 909f349 Compare December 20, 2025 07: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.

2 participants