Explorar o código

Fix slider drawing if device runs in the future

Felix Paul Kühne %!s(int64=12) %!d(string=hai) anos
pai
achega
bcc2f50631
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      AspenProject/VLCSlider.m

+ 4 - 2
AspenProject/VLCSlider.m

@@ -26,7 +26,8 @@
 {
     CGRect returnValue = [super trackRectForBounds:bounds];
     returnValue.origin.x = 5.;
-    returnValue.origin.y = 7.;
+    if (!SYSTEM_RUNS_IN_THE_FUTURE)
+        returnValue.origin.y = 7.;
     returnValue.size.width = bounds.size.width - 10.;
     return returnValue;
 }
@@ -49,7 +50,8 @@
 {
     CGRect returnValue = [super trackRectForBounds:bounds];
     returnValue.origin.x = 5.;
-    returnValue.origin.y = 7.;
+    if (!SYSTEM_RUNS_IN_THE_FUTURE)
+        returnValue.origin.y = 7.;
     returnValue.size.width = bounds.size.width - 10.;
     return returnValue;
 }