summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native
diff options
context:
space:
mode:
authorrina6350.you <rina6350.you@samsung.com>2017-06-16 20:26:01 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:36 +0900
commitc7037cc9e42caa73dc2ea4b1347ce5a7a5e5e93d (patch)
treedb9043a2360f12250ac4c13664b3188c48252a52 /Xamarin.Forms.Platform.Tizen/Native
parent9bb0b327bfee9cf67e4352868cb829986c57b575 (diff)
downloadxamarin-forms-c7037cc9e42caa73dc2ea4b1347ce5a7a5e5e93d.tar.gz
xamarin-forms-c7037cc9e42caa73dc2ea4b1347ce5a7a5e5e93d.tar.bz2
xamarin-forms-c7037cc9e42caa73dc2ea4b1347ce5a7a5e5e93d.zip
Fixed the LineBreakMode issue
- temporary way Change-Id: I3d3ddca8b54e0225172af84c1d6a296a302530bd
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-rwxr-xr-x[-rw-r--r--]Xamarin.Forms.Platform.Tizen/Native/Label.cs5
-rwxr-xr-x[-rw-r--r--]Xamarin.Forms.Platform.Tizen/Native/Span.cs10
2 files changed, 9 insertions, 6 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Label.cs b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
index 8d095363..b508b21e 100644..100755
--- a/Xamarin.Forms.Platform.Tizen/Native/Label.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
@@ -235,10 +235,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
IsEllipsis = true;
break;
}
- if (IsEllipsis || previousMode >= LineBreakMode.HeadTruncation)
- {
- ApplyTextAndStyle();
- }
+ ApplyTextAndStyle();
}
}
}
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Span.cs b/Xamarin.Forms.Platform.Tizen/Native/Span.cs
index 3b410ba1..3ffea252 100644..100755
--- a/Xamarin.Forms.Platform.Tizen/Native/Span.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Span.cs
@@ -244,12 +244,18 @@ namespace Xamarin.Forms.Platform.Tizen.Native
case LineBreakMode.TailTruncation:
_formattingString.Append("ellipsis=1.0");
break;
-
- case LineBreakMode.NoWrap:
case LineBreakMode.CharacterWrap:
+ _formattingString.Append("wrap=char");
+ break;
case LineBreakMode.WordWrap:
+ _formattingString.Append("wrap=word");
+ break;
case LineBreakMode.MixedWrap:
+ _formattingString.Append("wrap=mixed");
+ break;
+ case LineBreakMode.NoWrap:
case LineBreakMode.None:
+ _formattingString.Append("wrap=none");
break;
}