summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native/Label.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native/Label.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Label.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Label.cs b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
index c07cce82..9d52cde2 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Label.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using ElmSharp;
using ELabel = ElmSharp.Label;
using EColor = ElmSharp.Color;
@@ -300,6 +300,11 @@ namespace Xamarin.Forms.Platform.Tizen.Native
rawSize.Height += verticalPadding;
formattedSize.Height += verticalPadding;
+ // This is the EFL team's guide.
+ // For wrap to work properly, the label must be 1 pixel larger than the size of the formatted text.
+ rawSize.Width += 1;
+ formattedSize.Width += 1;
+
if (rawSize.Width > availableWidth)
{
return new ESize()