Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit 040a57e

Browse files
miominYorkShen
authored andcommitted
* [Android] Fix transition createLayoutPropertyValueHolder
1 parent 4bffbd2 commit 040a57e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

android/sdk/src/main/java/com/taobao/weex/dom/transition/WXTransition.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,22 +472,22 @@ private PropertyValuesHolder createLayoutPropertyValueHolder(String property, Ob
472472
}
473473
break;
474474
case Constants.Name.LEFT:{
475-
holder = PropertyValuesHolder.ofFloat(Constants.Name.LEFT, mWXComponent.getPadding().get(CSSShorthand.EDGE.LEFT),
475+
holder = PropertyValuesHolder.ofFloat(Constants.Name.LEFT, mWXComponent.getLayoutPosition().getLeft(),
476476
WXViewUtils.getRealPxByWidth(WXUtils.getFloatByViewport(value, mWXComponent.getViewPortWidth()), mWXComponent.getViewPortWidth()));
477477
}
478478
break;
479479
case Constants.Name.RIGHT:{
480-
holder = PropertyValuesHolder.ofFloat(Constants.Name.RIGHT, mWXComponent.getPadding().get(CSSShorthand.EDGE.RIGHT),
480+
holder = PropertyValuesHolder.ofFloat(Constants.Name.RIGHT, mWXComponent.getLayoutPosition().getRight(),
481481
WXViewUtils.getRealPxByWidth(WXUtils.getFloatByViewport(value, mWXComponent.getViewPortWidth()), mWXComponent.getViewPortWidth()));
482482
}
483483
break;
484484
case Constants.Name.BOTTOM:{
485-
holder = PropertyValuesHolder.ofFloat(Constants.Name.BOTTOM, mWXComponent.getPadding().get(CSSShorthand.EDGE.BOTTOM),
485+
holder = PropertyValuesHolder.ofFloat(Constants.Name.BOTTOM, mWXComponent.getLayoutPosition().getBottom(),
486486
WXViewUtils.getRealPxByWidth(WXUtils.getFloatByViewport(value, mWXComponent.getViewPortWidth()), mWXComponent.getViewPortWidth()));
487487
}
488488
break;
489489
case Constants.Name.TOP:{
490-
holder = PropertyValuesHolder.ofFloat(Constants.Name.TOP, mWXComponent.getPadding().get(CSSShorthand.EDGE.TOP),
490+
holder = PropertyValuesHolder.ofFloat(Constants.Name.TOP, mWXComponent.getLayoutPosition().getTop(),
491491
WXViewUtils.getRealPxByWidth(WXUtils.getFloatByViewport(value, mWXComponent.getViewPortWidth()), mWXComponent.getViewPortWidth()));
492492
}
493493
break;

0 commit comments

Comments
 (0)