Repository navigation
fix: reserve the detail dial width before upgrade - #5018
Merged
Merged
Conversation
The dial introduced in #4506 reserved its height but its empty fit-content host had zero width. Measure its three labels invisibly in the button face until definition, including the button insets and row gaps. This keeps the existing completed control and the authored page layout unchanged. Closes #4949
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The detail dial introduced in #4506 reserved its height but left its empty
fit-contenthost at zero width. Its theme now measures the three button labels invisibly in their interface font, including the buttons' insets and the row's gaps, until the element is defined. The completed dial keeps its existing size, controls and placement.The existing detail-package widget-quality test fails before and passes after in both column and workspace layouts, without changing its allowances. The dial's folding/place-retention/restore journey and all 737 runtime tests pass.
git diff --checkpasses; Prettier could not run because it is unavailable in this checkout.A served startup comparison reaches upgrade and presentation with the same 33 code requests and 31 JavaScript requests, with unchanged JavaScript bytes. The theme adds about 0.3 KB of CSS to reserve the control's actual room before upgrade; no script or request is added.
Completed dial, base and candidate
Fresh served preview screenshots are pixel-identical. The change is to the invisible pre-upgrade box: from zero width to the width of the buttons that will occupy it.
Before:
After:
The
detail-dialstills comparison also ran: it reported a selected-button border paint difference with no computed-style differences. The fresh HTTP preview pair above was checked separately and has no pixel difference.Closes #4949 — automated triage