summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2016-12-19 05:10:29 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2016-12-19 05:10:29 (GMT)
commitcfa2dce69636ce8a35b4fff2af67adf9c0a63882 (patch)
treeea1acb5c48428806034d004c62345fa0da7ae639
parent4f1ea2eb553240932fc173c758d0d975bafe4dbd (diff)
downloadxamarin-forms-cfa2dce69636ce8a35b4fff2af67adf9c0a63882.zip
xamarin-forms-cfa2dce69636ce8a35b4fff2af67adf9c0a63882.tar.gz
xamarin-forms-cfa2dce69636ce8a35b4fff2af67adf9c0a63882.tar.bz2
Remove horizontalPadding for Label to measure its width correctlyrefs/changes/80/105580/1
Change-Id: I6b09e9dbb1996eef4751b13973145df72602fb2e
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Label.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Label.cs b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
index cba2ba2..c07cce8 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Label.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
@@ -297,10 +297,8 @@ namespace Xamarin.Forms.Platform.Tizen.Native
// Set bottom padding for lower case letters that have segments below the bottom line of text (g, j, p, q, y).
var verticalPadding = (int)Math.Ceiling(0.05 * FontSize);
- var horizontalPadding = (int)Math.Ceiling(0.2 * FontSize);
rawSize.Height += verticalPadding;
formattedSize.Height += verticalPadding;
- formattedSize.Width += horizontalPadding;
if (rawSize.Width > availableWidth)
{