projects
/
platform
/
upstream
/
xamarin-forms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ca9238
)
Remove horizontalPadding for Label to measure its width correctly
author
Kangho Hur
<kangho.hur@samsung.com>
Mon, 19 Dec 2016 05:10:29 +0000
(14:10 +0900)
committer
Kangho Hur
<kangho.hur@samsung.com>
Fri, 24 Mar 2017 04:18:57 +0000
(13:18 +0900)
Change-Id: I6b09e9dbb1996eef4751b13973145df72602fb2e
Xamarin.Forms.Platform.Tizen/Native/Label.cs
patch
|
blob
|
history
diff --git
a/Xamarin.Forms.Platform.Tizen/Native/Label.cs
b/Xamarin.Forms.Platform.Tizen/Native/Label.cs
index
cba2ba2
..
c07cce8
100644
(file)
--- 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)
{