summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native
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-07-10 11:11:15 +0900
commitbbc51699f89de451918cfde325a3d89d47d31e32 (patch)
tree4f5635f715f9b7c92ce7e9943339ea098d09d702 /Xamarin.Forms.Platform.Tizen/Native
parent69cb7c9f8935670bf0af7c531850efafa3d1de40 (diff)
downloadxamarin-forms-bbc51699f89de451918cfde325a3d89d47d31e32.tar.gz
xamarin-forms-bbc51699f89de451918cfde325a3d89d47d31e32.tar.bz2
xamarin-forms-bbc51699f89de451918cfde325a3d89d47d31e32.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
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-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()