Add spacing properties
Summary: Align C# implementation with YogaKit #322 Closes https://github.com/facebook/yoga/pull/327 Reviewed By: emilsjolander Differential Revision: D4390687 Pulled By: splhack fbshipit-source-id: 28c87a45898fcd958a422d5e254ead0ec00d3562
This commit is contained in:
committed by
Facebook Github Bot
parent
969b3709db
commit
8ed71b2777
@@ -102,12 +102,12 @@ CSEmitter.prototype = Object.create(Emitter.prototype, {
|
||||
YGDirectionLTR:{value:'YogaDirection.LTR'},
|
||||
YGDirectionRTL:{value:'YogaDirection.RTL'},
|
||||
|
||||
YGEdgeBottom:{value:'YogaEdge.Bottom'},
|
||||
YGEdgeEnd:{value:'YogaEdge.End'},
|
||||
YGEdgeLeft:{value:'YogaEdge.Left'},
|
||||
YGEdgeRight:{value:'YogaEdge.Right'},
|
||||
YGEdgeStart:{value:'YogaEdge.Start'},
|
||||
YGEdgeTop:{value:'YogaEdge.Top'},
|
||||
YGEdgeBottom:{value:'Bottom'},
|
||||
YGEdgeEnd:{value:'End'},
|
||||
YGEdgeLeft:{value:'Left'},
|
||||
YGEdgeRight:{value:'Right'},
|
||||
YGEdgeStart:{value:'Start'},
|
||||
YGEdgeTop:{value:'Top'},
|
||||
|
||||
YGFlexDirectionColumn:{value:'YogaFlexDirection.Column'},
|
||||
YGFlexDirectionColumnReverse:{value:'YogaFlexDirection.ColumnReverse'},
|
||||
@@ -169,7 +169,7 @@ CSEmitter.prototype = Object.create(Emitter.prototype, {
|
||||
}},
|
||||
|
||||
YGNodeStyleSetBorder:{value:function(nodeName, edge, value) {
|
||||
this.push(nodeName + '.SetBorder(' + edge + ', ' + toValueCs(value) + ');');
|
||||
this.push(nodeName + '.Border' + edge + 'Width = ' + toValueCs(value) + ';');
|
||||
}},
|
||||
|
||||
YGNodeStyleSetDirection:{value:function(nodeName, value) {
|
||||
@@ -205,7 +205,7 @@ CSEmitter.prototype = Object.create(Emitter.prototype, {
|
||||
}},
|
||||
|
||||
YGNodeStyleSetMargin:{value:function(nodeName, edge, value) {
|
||||
this.push(nodeName + '.SetMargin(' + edge + ', ' + toCsUnitValue(value) + ');');
|
||||
this.push(nodeName + '.Margin' + edge + ' = ' + toCsUnitValue(value) + ';');
|
||||
}},
|
||||
|
||||
YGNodeStyleSetMaxHeight:{value:function(nodeName, value) {
|
||||
@@ -229,11 +229,11 @@ CSEmitter.prototype = Object.create(Emitter.prototype, {
|
||||
}},
|
||||
|
||||
YGNodeStyleSetPadding:{value:function(nodeName, edge, value) {
|
||||
this.push(nodeName + '.SetPadding(' + edge + ', ' + toCsUnitValue(value) + ');');
|
||||
this.push(nodeName + '.Padding' + edge + ' = ' + toCsUnitValue(value) + ';');
|
||||
}},
|
||||
|
||||
YGNodeStyleSetPosition:{value:function(nodeName, edge, value) {
|
||||
this.push(nodeName + '.SetPosition(' + edge + ', ' + toCsUnitValue(value) + ');');
|
||||
this.push(nodeName + '.' + edge + ' = ' + toCsUnitValue(value) + ';');
|
||||
}},
|
||||
|
||||
YGNodeStyleSetPositionType:{value:function(nodeName, value) {
|
||||
|
Reference in New Issue
Block a user