@@ -472,22 +472,22 @@ private PropertyValuesHolder createLayoutPropertyValueHolder(String property, Ob
472
472
}
473
473
break ;
474
474
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 ( ),
476
476
WXViewUtils .getRealPxByWidth (WXUtils .getFloatByViewport (value , mWXComponent .getViewPortWidth ()), mWXComponent .getViewPortWidth ()));
477
477
}
478
478
break ;
479
479
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 ( ),
481
481
WXViewUtils .getRealPxByWidth (WXUtils .getFloatByViewport (value , mWXComponent .getViewPortWidth ()), mWXComponent .getViewPortWidth ()));
482
482
}
483
483
break ;
484
484
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 ( ),
486
486
WXViewUtils .getRealPxByWidth (WXUtils .getFloatByViewport (value , mWXComponent .getViewPortWidth ()), mWXComponent .getViewPortWidth ()));
487
487
}
488
488
break ;
489
489
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 ( ),
491
491
WXViewUtils .getRealPxByWidth (WXUtils .getFloatByViewport (value , mWXComponent .getViewPortWidth ()), mWXComponent .getViewPortWidth ()));
492
492
}
493
493
break ;
0 commit comments