mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-12 22:39:06 +08:00
Fix checks for already set padding
Reviewed By: ahmedre Differential Revision: D4393371 fbshipit-source-id: 96672d0ee38b16b6f225c8a6fe0442c9b9eb9ec8
This commit is contained in:
committed by
Facebook Github Bot
parent
a1d77af07c
commit
9724eaeb42
@@ -598,6 +598,10 @@ public class ReactShadowNode {
|
||||
return mYogaNode.getLayoutPadding(YogaEdge.fromInt(spacingType));
|
||||
}
|
||||
|
||||
public final float getStylePadding(int spacingType) {
|
||||
return mYogaNode.getPadding(YogaEdge.fromInt(spacingType)).value;
|
||||
}
|
||||
|
||||
public void setDefaultPadding(int spacingType, float padding) {
|
||||
mDefaultPadding.set(spacingType, padding);
|
||||
updatePadding();
|
||||
|
||||
Reference in New Issue
Block a user