@@ -121,12 +121,29 @@ public override void OnCollectExtraUpdates(UIViewOperationQueue uiViewOperationQ
121
121
122
122
if ( _inline != null )
123
123
{
124
+ var _paddings = new Thickness ( )
125
+ {
126
+ Left = float . IsNaN ( GetPadding ( CSSSpacingType . Left ) ) ?
127
+ float . IsNaN ( GetPadding ( CSSSpacingType . Horizontal ) ) ?
128
+ float . IsNaN ( GetPadding ( CSSSpacingType . All ) ) ? 0 :
129
+ GetPadding ( CSSSpacingType . All ) :
130
+ GetPadding ( CSSSpacingType . Horizontal ) :
131
+ GetPadding ( CSSSpacingType . Left ) ,
132
+ Top = float . IsNaN ( GetPadding ( CSSSpacingType . Top ) ) ?
133
+ float . IsNaN ( GetPadding ( CSSSpacingType . Vertical ) ) ?
134
+ float . IsNaN ( GetPadding ( CSSSpacingType . All ) ) ? 0 :
135
+ GetPadding ( CSSSpacingType . All ) :
136
+ GetPadding ( CSSSpacingType . Vertical ) :
137
+ GetPadding ( CSSSpacingType . Top ) ,
138
+ } ;
139
+
124
140
var args = Tuple . Create (
125
141
_inline ,
126
142
_textAlignment ,
127
143
_lineHeight ,
128
144
_numberOfLines ,
129
- _letterSpacing ) ;
145
+ _letterSpacing ,
146
+ _paddings ) ;
130
147
131
148
uiViewOperationQueue . EnqueueUpdateExtraData ( ReactTag , args ) ;
132
149
}
@@ -371,7 +388,7 @@ private static void ThrowException(string property)
371
388
throw new InvalidOperationException ( "Property " + property + " is supported only on the outermost text block." ) ;
372
389
}
373
390
374
- private static MeasureOutput MeasureText ( CSSNode node , float width , float height )
391
+ private static MeasureOutput MeasureText ( CSSNode node , float width , CSSMeasureMode widthMode , float height , CSSMeasureMode heightMode )
375
392
{
376
393
// This is not a terribly efficient way of projecting the height of
377
394
// the text elements. It requires that we have access to the
@@ -394,7 +411,7 @@ private static MeasureOutput MeasureText(CSSNode node, float width, float height
394
411
textBlock . CharacterSpacing = textNode . _letterSpacing ;
395
412
textBlock . LineHeight = textNode . _lineHeight ;
396
413
textBlock . MaxLines = textNode . _numberOfLines ;
397
- textBlock . TextAlignment = ( TextAlignment ) textNode . _textAlignment ;
414
+ textBlock . TextAlignment = textNode . _textAlignment ;
398
415
399
416
textBlock . Inlines . Add ( ReactTextShadowNodeInlineVisitor . Apply ( node ) ) ;
400
417
0 commit comments