Skip to content

Artifactory rail: size the scroll box with fixedSize, not a measurement - #238

Merged
scgopi merged 1 commit into
mainfrom
fix/artifactory-rail-gap
Sep 1, 2026
Merged

scgopi merged 1 commit into
mainfrom
fix/artifactory-rail-gap

Conversation

@scgopi

@scgopi scgopi commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Reported with a screenshot: a large gap between the ARTIFACTORY header and the 3 message records row under it.

The box was taller than its rows and bottom-anchored, so the slack sat between the header and the first row. This is the second failure of sizing the scroll box from a measured content height — first a zero start that never laid out (#237), now a stale reading. Preferences from inside a ScrollView are not a foundation to build on.

Replaced with the idiom that needs no measuring: .frame(maxHeight: 600).fixedSize(horizontal: false, vertical: true). fixedSize asks the scroll view for its ideal height — its content's — and the frame under it clamps that. The box is exactly as tall as the posts until the cap and scrolls after. No state, nothing to go stale, nothing to fire late. All GeometryReader / preference plumbing removed.

Suite 1482 tests / 153 suites pass; swiftlint 0 errors, swift-format --strict clean. Needs a human's eyes — no GUI automation here.

🤖 Generated with Claude Code

https://claude.ai/code/session_019A6NULwEiBXEdRXwEKKcRH

Reported with a screenshot: a large gap between the ARTIFACTORY header and
the "3 message records" row under it. The box was taller than its rows and
bottom-anchored, so the slack sat between the header and the first row.

This is the second failure of sizing the scroll box from a measured content
height — first a zero start that never laid out (#237), now a stale reading.
Preferences from inside a ScrollView are not a foundation to build on.

Replaced with the idiom that needs no measuring: `.frame(maxHeight:)` under
`.fixedSize(horizontal: false, vertical: true)`. fixedSize asks the scroll
view for its ideal height, which is its content's, and the frame clamps that.
The box is exactly as tall as the posts until the cap and scrolls after. No
state, nothing to go stale, nothing to fire late. All GeometryReader and
preference plumbing removed.

Suite: 1482 tests / 153 suites pass; swiftlint 0 errors, format clean.

Signed-off-by: scgopi <scgopireddy@gmail.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019A6NULwEiBXEdRXwEKMcRH
@scgopi
scgopi merged commit 13833fb into main Sep 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant