Explorar o código

MacOSX/Framework/VLCVideoLayer.m: Don't use any layout manager.

Pierre d'Herbemont %!s(int64=17) %!d(string=hai) anos
pai
achega
f3abdb619c
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  1. 1 11
      Sources/VLCVideoLayer.m

+ 1 - 11
Sources/VLCVideoLayer.m

@@ -69,17 +69,7 @@
 
     aLayer.name = @"vlcopengllayer";
 
-    [self setLayoutManager:[CAConstraintLayoutManager layoutManager]];
-
-    [aLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintMaxY
-                                       relativeTo:@"superlayer" attribute:kCAConstraintMaxY]];
-    [aLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintMaxX
-                                       relativeTo:@"superlayer" attribute:kCAConstraintMaxX]];
-    [aLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintMinX
-                                       relativeTo:@"superlayer" attribute:kCAConstraintMinX]];
-    [aLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintMinY
-                                       relativeTo:@"superlayer" attribute:kCAConstraintMinY]];
-
+    [aLayer setAutoresizingMask:kCALayerWidthSizable|kCALayerHeightSizable];
 
     [self insertSublayer:aLayer atIndex:0];