Skip to content

Fix skein scrolling to top on every edit (#45)#52

Open
angstsmurf wants to merge 1 commit into
TobyLobster:masterfrom
angstsmurf:fix-skein-scroll-45
Open

Fix skein scrolling to top on every edit (#45)#52
angstsmurf wants to merge 1 commit into
TobyLobster:masterfrom
angstsmurf:fix-skein-scroll-45

Conversation

@angstsmurf

Copy link
Copy Markdown
Contributor

Fixes #45.

-layoutSkeinWithAnimation: in IFSkeinView.m called resizeView twice. The first call ran before the report layout was accounted for, temporarily shrinking the view and forcing the enclosing scroll view to jump to the top on every edit. The second resizeView call (after updateLayoutWithReportDetails:) already sizes the view to the final layout, so the first call is redundant as well as harmful.

This removes the first call, preserving the scroll position when editing the skein.

🤖 Generated with Claude Code

Remove the first resizeView call in layoutSkeinWithAnimation:. It shrank
the view before the report layout was accounted for, forcing the scroll
view to jump to the top; the second resizeView call already sizes the
view correctly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

Skein scrolls back up to the top after making any change to it

1 participant