소스 검색

status label: replace hard-coded constant which doesn't work

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Filipe Cabecinhas 9 년 전
부모
커밋
de84df61e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/VLCStatusLabel.m

+ 1 - 1
Sources/VLCStatusLabel.m

@@ -104,7 +104,7 @@
 - (CGSize)sizeThatFits:(CGSize)size
 {
     CGSize textSize = [self.text sizeWithAttributes:self.font.fontDescriptor.fontAttributes];
-    textSize.width += 16.f; // take extra width into account for our custom drawing
+    textSize.width += size.height * 4.; // take extra width into account for our custom drawing
     return textSize;
 }