Repository navigation
fix: hold no Another option row or number in a closed options group - #5549
Merged
Merged
Conversation
A `choose` group reserves the height of its Add cell ("Another option")
until the widget draws it, so the next block stays put through upgrade.
`closed` (#4490) leaves Add out for good, but the reserve still keyed only
on the cell being absent, so every closed group kept an empty row of about
33px under its last option forever.
The reserve now skips `[closed]` groups; a multiple-choice closed group
still holds Done's row until Done is drawn. The closed-group test now
also checks the group ends at its last cell; it fails on main with 33px
to spare.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`lf-options` reserved a binding number for the Another option field whenever the group stood outside the chrome, a second copy of the rule that decides whether the field is offered at all. That copy missed `closed`, so a closed multiple-choice group of three options showed Done as 5, skipping a 4 nothing on the page pressed. The reservation now reads the addition's own `offered`, the one place that rule is stated. The closed-group test walks to the group with `m` and expects Done's badge to read 4; it read 5 before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
leaf-agent
approved these changes
Nov 5, 2026
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.
A
closedoptions group (#4490) never draws the Another option field, but two places still acted as if it would.The stylesheet reserves the Add cell's height until the widget draws it, so the next block stays put through upgrade. That reserve keyed only on the cell being absent, so every closed group kept an empty row of about 33px under its last option. The reserve now skips
[closed]groups; a closed multiple-choice group still holds Done's row until Done is drawn. The stylesheet keeps its own statement of the rule because it has to reserve the row before the widget's script runs.lf-optionsalso reserved a binding number for the field whenever the group stood outside the chrome, a second copy of the rule that decides whether the field is offered. That copy missedclosed, so a closed group of three options showed Done as 5, skipping a 4 nothing pressed. The reservation now reads the addition's ownoffered, the one place that rule is stated in script.test_a_closed_group_answers_only_from_its_optionsnow checks that the group ends at its last cell and that Done's badge reads 4. On main it fails both ways (33px of empty space, Done as 5).