feat:Do not change the rotattion value for Android

This commit is contained in:
pengfei.zhou
2019-11-29 15:42:54 +08:00
parent 3a89571f42
commit d56556fb4a
2 changed files with 40 additions and 19 deletions

View File

@@ -386,12 +386,6 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
@DoricMethod
public void setRotation(float rotation) {
while (rotation > 2) {
rotation = rotation - 2;
}
while (rotation < -2) {
rotation = rotation + 2;
}
getNodeView().setRotation(rotation * 180);
}