From 5fb0d3a67acd4258ffaf5acd4075f05b7f82449e Mon Sep 17 00:00:00 2001 From: leavengood Date: Sat, 11 Jun 2011 14:03:15 +0000 Subject: [PATCH] Add some padding to the time zone display. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42098 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/time/TZDisplay.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/preferences/time/TZDisplay.cpp b/src/preferences/time/TZDisplay.cpp index 81efed6105..03f322fe1f 100644 --- a/src/preferences/time/TZDisplay.cpp +++ b/src/preferences/time/TZDisplay.cpp @@ -158,9 +158,11 @@ TTZDisplay::_CalcPrefSize() size.height = 2 * ceilf(fontHeight.ascent + fontHeight.descent + fontHeight.leading); + // Add a little padding + float padding = 10.0; float firstLine = ceilf(StringWidth(fLabel.String()) + - StringWidth(" ") + StringWidth(fTime.String())); - float secondLine = ceilf(StringWidth(fText.String())); + StringWidth(" ") + StringWidth(fTime.String()) + padding); + float secondLine = ceilf(StringWidth(fText.String()) + padding); size.width = firstLine > secondLine ? firstLine : secondLine; return size; }