Explorar o código

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.

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Marc Etcheverry %!s(int64=11) %!d(string=hai) anos
pai
achega
338923efbd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/VLCLocalServerListViewController.m

+ 1 - 1
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);