Skip to content

Commit

Permalink
Added comment to describe purpose of onLayoutChange
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Comella committed Nov 23, 2016
1 parent 511188d commit 4f5bb1e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,9 @@ public void onChildViewRemoved(View parent, View child) {
}

/**
* Called when a mContentView's layout has changed.
* Called when a mContentView's layout has changed. Fixes the scroll position if it's too large
* after the content resizes. Without this, the user would see a blank ScrollView when the scroll
* position is larger than the ScrollView's max scroll position after the content shrinks.
*/
@Override
public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
Expand Down

0 comments on commit 4f5bb1e

Please sign in to comment.