mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 17:47:21 +08:00
Use layout padding instead of style padding
Reviewed By: AaaChiuuu Differential Revision: D4377074 fbshipit-source-id: a9abbe58e51399e123328f905b4ea8afe0502e33
This commit is contained in:
committed by
Facebook Github Bot
parent
8105f76226
commit
ca484fa422
@@ -595,7 +595,7 @@ public class ReactShadowNode {
|
||||
}
|
||||
|
||||
public final float getPadding(int spacingType) {
|
||||
return mYogaNode.getPadding(YogaEdge.fromInt(spacingType)).value;
|
||||
return mYogaNode.getLayoutPadding(YogaEdge.fromInt(spacingType));
|
||||
}
|
||||
|
||||
public void setDefaultPadding(int spacingType, float padding) {
|
||||
|
||||
Reference in New Issue
Block a user