Explorar o código

VLCMoviewViewControlPanelView: fix breaking constraints on small devices for the playbackcontrols

Carola Nitz %!s(int64=7) %!d(string=hai) anos
pai
achega
402bc140c7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Sources/VLCMovieViewControlPanelView.m

+ 2 - 2
Sources/VLCMovieViewControlPanelView.m

@@ -27,7 +27,7 @@
 
 @implementation VLCMovieViewControlPanelView
 
-static const CGFloat maxCompactWidth = 420.0;
+static const CGFloat maxControlsWidth = 474.0;
 
 - (instancetype)initWithFrame:(CGRect)frame
 {
@@ -148,7 +148,7 @@ static const CGFloat maxCompactWidth = 420.0;
 
 - (void)updateViewConstraints
 {
-    BOOL compactMode = CGRectGetWidth(self.frame) <= maxCompactWidth;
+    BOOL compactMode = CGRectGetWidth(self.frame) <= maxControlsWidth;
     if (self.compactMode != compactMode) {
         self.compactMode = compactMode;
         [self setupConstraints:compactMode];