Jelajahi Sumber

VLCMoviewViewControlPanelView: fix breaking constraints on small devices for the playbackcontrols

Carola Nitz 7 tahun lalu
induk
melakukan
402bc140c7
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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];