[vlc-devel] [PATCH] Fix the descender 'g' in the "Universal Plug'n'Play" text in Local Network being cut off at the bottom. Do not inset the rect, UILabel will vertically center by default.

Marc Etcheverry marc at taplightsoftware.com
Thu Jun 26 01:47:15 CEST 2014


---
 Sources/VLCLocalServerListViewController.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Sources/VLCLocalServerListViewController.m b/Sources/VLCLocalServerListViewController.m
index 4f5dfa3..5a49a09 100644
--- a/Sources/VLCLocalServerListViewController.m
+++ b/Sources/VLCLocalServerListViewController.m
@@ -403,7 +403,7 @@
         } else
             headerView.backgroundColor = [UIColor VLCDarkBackgroundColor];
 
-        UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectInset(headerView.bounds, 12.0f, 5.0f)];
+        UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectInset(headerView.bounds, 12.0f, 0.f)];
         textLabel.text = (NSString *) headerText;
         textLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:([UIFont systemFontSize] * 0.8f)];
         textLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
-- 
1.8.5.2 (Apple Git-48)




More information about the vlc-devel mailing list