Просмотр исходного кода

fix(JitsiMeetView): fix rotation on iOS

The root view was not adjusting it's bounds after device rotation.
efficient_tiling
paweldomas 8 лет назад
Родитель
Сommit
cbd2bb0140
1 измененных файлов: 3 добавлений и 0 удалений
  1. 3
    0
      ios/sdk/src/JitsiMeetView.m

+ 3
- 0
ios/sdk/src/JitsiMeetView.m Просмотреть файл

@@ -296,6 +296,9 @@ static NSMapTable<NSString *, JitsiMeetView *> *views;
296 296
 
297 297
         // Add rootView as a subview which completely covers this one.
298 298
         [rootView setFrame:[self bounds]];
299
+        rootView.autoresizingMask
300
+            = UIViewAutoresizingFlexibleWidth
301
+                | UIViewAutoresizingFlexibleHeight;
299 302
         [self addSubview:rootView];
300 303
     }
301 304
 }

Загрузка…
Отмена
Сохранить