Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Fixed scroll offset adjustment due to inputBarHeight change being don…#539

Merged
ZAndyL merged 1 commit into
masterfrom
inputHeightScroll
Oct 24, 2016
Merged

Fixed scroll offset adjustment due to inputBarHeight change being don…#539
ZAndyL merged 1 commit into
masterfrom
inputHeightScroll

Conversation

@ZAndyL

@ZAndyL ZAndyL commented Oct 24, 2016

Copy link
Copy Markdown
Contributor

Follow up on #532

When increasing the height constraint of a scrollview and calling layout on it, _adjustContentOffsetIfNecessary is called which adjusts the content offset so that there's no blank space at the bottom. When this happens, the content offset adjustment would happen twice, once by _adjustContentOffsetIfNecessary and once by the code in the block.

Have the adjustment be based on the contentOffset before any layout so that it remains accurate.

…e twice sometimes.

When increasing the height constraint of a scrollview and calling layout on it, _adjustContentOffsetIfNecessary is called which adjusts the content offset so that there's no blank space at the bottom. When this happens, the content offset adjustment would happen twice, once by _adjustContentOffsetIfNecessary and once by the code in the block.

Have the adjustment be based on the contentOffset before any layout so that it remains accurate.

@dzenbot dzenbot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZAndyL ZAndyL merged commit 27087de into master Oct 24, 2016
@ZAndyL ZAndyL deleted the inputHeightScroll branch October 24, 2016 21:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants