Quellcode durchsuchen

VLCMoviewViewControlPanelView: fix breaking constraints on small devices for the playbackcontrols

Carola Nitz vor 7 Jahren
Ursprung
Commit
402bc140c7
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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];