Skip to content

Commit

Permalink
adjusted for padding on size changed
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevinAvery committed Dec 16, 2018
1 parent b7d8dc2 commit 7efc50d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
// big or too small, thus making the current zoom fall outside of an automatically-changing
// minZoom and maxZoom).
//
viewWidth = w;
viewHeight = h;
viewWidth = w - getPaddingLeft() - getPaddingRight();
viewHeight = h - getPaddingTop() - getPaddingBottom();
fitImageToView();
}

Expand Down

0 comments on commit 7efc50d

Please sign in to comment.