summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-01-10 12:59:13 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:26 +0900
commit913356d20bc0a89e086818e6c12aa1364e65db9f (patch)
tree04caac60ddff54bd7d50b8bb1ebbf7956293547a
parent4d4544ec81cbb41fe8f8163c772693a74ecca2c7 (diff)
downloadxamarin-forms-913356d20bc0a89e086818e6c12aa1364e65db9f.tar.gz
xamarin-forms-913356d20bc0a89e086818e6c12aa1364e65db9f.tar.bz2
xamarin-forms-913356d20bc0a89e086818e6c12aa1364e65db9f.zip
Fix Label wrap issue
- In some case wrap was not properly working - The label width should be 1 pixel larger than formattedtext block size - It is EFL rule Change-Id: Ie246dd73b678921c3a0c503022c58b3a2c8dc887
-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()