mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Fixed issue with image rotation.
This commit is contained in:
@ -110,11 +110,9 @@ export class Image extends imageCommon.Image {
|
|||||||
if (!nativeImage) {
|
if (!nativeImage) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let rotation = nativeImage.rotationAngle ? nativeImage.rotationAngle : 0 ;
|
let rotation = nativeImage.rotationAngle ? nativeImage.rotationAngle : 0;
|
||||||
if (rotation > 0) {
|
this.android.setRotationAngle(rotation);
|
||||||
this.android.setRotationAngle(rotation);
|
|
||||||
}
|
|
||||||
this.android.setImageBitmap(nativeImage.android);
|
this.android.setImageBitmap(nativeImage.android);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user