Keep display value anchored to the bottom on font shrink - #2
Conversation
When a long number forced the display font to shrink, the Text item's implicit height shrank with it and the number crept upward. Give the display its own area below the expression, align the text to the bottom of that area, and raise the minimum pixel size from 22 to 32 so long results still look like part of the display instead of a tiny label.
|
The bottom-anchoring half of this is right, and it fixes a bigger problem than the description claims. Measured on Qt 6.11.1 with the bundled iA Writer Mono S at the 400x568 design size, rendering offscreen: before this change the display's ink bottom sat at y=121 for One correction for the record, since the commit message will outlive the review: the item's The The display
A negative result silently losing its minus sign is worse than the small font the bump was meant to avoid. Restoring Two things worth knowing about the stack. Commit 9a4b1e0 is already in #7, so whatever lands here lands there. And #3's
|
Summary
When a long number forced the display font to shrink, the Text item's implicit height shrank with it and the number crept upward. This change:
anchors.top: expressionText.bottom; anchors.bottom: parent.bottom).verticalAlignment: Text.AlignBottom).Test plan
./bin/testpasses (20/20)../bin/buildcompiles successfully.