Invalidate bitmap when view size is changed

This commit is contained in:
Igor Lira
2018-11-02 15:18:05 -07:00
committed by GitHub
parent 1f74820501
commit e74ff2b3a3
@@ -91,6 +91,12 @@ public class SvgView extends ReactViewGroup implements ReactCompoundView, ReactC
if (mBitmap != null)
canvas.drawBitmap(mBitmap, 0, 0, null);
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
this.invalidate();
}
@Override
public int reactTagForTouch(float touchX, float touchY) {