Skip to content

Commit

Permalink
Resetting state when view size is changed (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvasilkov committed May 5, 2018
1 parent 0b79c43 commit d370a1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected void onSizeChanged(int width, int height, int oldWidth, int oldHeight)
super.onSizeChanged(width, height, oldWidth, oldHeight);
controller.getSettings().setViewport(width - getPaddingLeft() - getPaddingRight(),
height - getPaddingTop() - getPaddingBottom());
controller.updateState();
controller.resetState();
}

@Override
Expand Down

0 comments on commit d370a1b

Please sign in to comment.