diff options
author | Seungkeun Lee <sngn.lee@samsung.com> | 2017-01-10 12:59:13 +0900 |
---|---|---|
committer | Seungkeun Lee <sngn.lee@samsung.com> | 2017-01-10 12:59:13 +0900 |
commit | 255afbbc86be399ee7a801910e6a74b268741598 (patch) | |
tree | 8da5cd007e71a533d6bded45181aa4e1051f92d8 | |
parent | 238bfda11545955c511bdc213073a30a9aee1c1b (diff) | |
download | xamarin-forms-255afbbc86be399ee7a801910e6a74b268741598.tar.gz xamarin-forms-255afbbc86be399ee7a801910e6a74b268741598.tar.bz2 xamarin-forms-255afbbc86be399ee7a801910e6a74b268741598.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.cs | 7 |
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() |