fix: widget layout tool disfunction after display orientation change

This commit is contained in:
TrueZhuanjia committed 2025-07-27 00:08:10 +08:00
1 parent 6a3e1d8a88
commit dd9ad9728a
5 files changed
+52 -30

No files matched your search

@@ -60,6 +60,7 @@
UIScrollView *_scrollView;
BOOL _userIsInteracting;
bool viewJustLoaded;
bool viewIsBeingResized;
CGSize _keyboardSize;
UIWindow *_extWindow;
UIView *_streamVideoRenderView;
@@ -314,7 +315,8 @@
_settings = [[[DataManager alloc] init] getSettings]; //StreamFrameViewController retrieve the settings here.
overlayLevel = _settings.statsOverlayLevel.intValue;
[self configOscLayoutTool];
if(viewIsBeingResized) viewIsBeingResized = false;
else [self configOscLayoutTool];
[self updateToolboxSpecialEntries];
[self configGestures];
[self configZoomGestureAndAddStreamView];
@@ -491,6 +493,7 @@
- (void)viewDidLoad
{
viewJustLoaded = true;
viewIsBeingResized = false;
[super viewDidLoad];
[self.navigationController setNavigationBarHidden:YES animated:YES];
@@ -869,6 +872,7 @@
}
- (void) handleViewResize{
viewIsBeingResized = true;
_streamView.bounds = _deviceWindow.bounds;
_streamView.frame = _deviceWindow.frame;
if(![self isAirPlaying]){