Skip to content

Commit ae245d2

Browse files
author
Chris Banes
committed
Fix Rotation pivot point
1 parent c8ec3ab commit ae245d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/src/com/handmark/pulltorefresh/library/internal/FlipLoadingLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected void onLoadingDrawableSet(Drawable imageDrawable) {
7575
mHeaderImage.setScaleType(ScaleType.MATRIX);
7676
Matrix matrix = new Matrix();
7777
matrix.postTranslate((lp.width - dWidth) / 2f, (lp.height - dHeight) / 2f);
78-
matrix.postRotate(getDrawableRotationAngle(), dWidth / 2f, dHeight / 2f);
78+
matrix.postRotate(getDrawableRotationAngle(), lp.width / 2f, lp.height / 2f);
7979
mHeaderImage.setImageMatrix(matrix);
8080
}
8181
}

0 commit comments

Comments
 (0)