Skip to content
This repository has been 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
merged 1 commit into from
Oct 24, 2016

Conversation

ZAndyL
Copy link
Contributor

@ZAndyL ZAndyL commented Oct 24, 2016

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.
Copy link

@dzenbot dzenbot left a comment

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