浏览代码

Fix slider drawing if device runs in the future

Felix Paul Kühne 12 年之前
父节点
当前提交
bcc2f50631
共有 1 个文件被更改,包括 4 次插入2 次删除
  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;
 }