further fix widget layout with orientation change issue

This commit is contained in:
TrueZhuanjia
2025-09-13 22:57:20 +08:00
parent fcbc844587
commit 8fb4829aef
2 changed files with 3 additions and 3 deletions
@@ -311,8 +311,7 @@ static CGRect layoutViewBounds;
position.x = position.x / layoutViewBounds.size.width;
position.y = position.y / layoutViewBounds.size.height;
}
// asdfsda;
NSLog(@"sef.view bounds: %f, %f", layoutViewBounds.size.width, layoutViewBounds.size.height);
NSLog(@"layoutToolView bounds: %f, %f", layoutViewBounds.size.width, layoutViewBounds.size.height);
NSLog(@"position: %f, %f, denormalized position: %f, %f", position.x, position.y, newPosition.x, newPosition.y);
return position;
}
@@ -298,6 +298,7 @@
selectedControllerLayer = nil;
_oscProfilesTableViewController.layoutViewBounds = self.view.bounds;
[OSCProfilesManager setLayoutViewBounds:self.view.bounds];
[OSCProfilesManager setOnScreenWidgetViewsSet:self.onScreenWidgetViews]; // pass the keyboard button dict to profiles manager
[self reloadOnScreenWidgetViews];
[self reloadLegacyOnScreenControls];
@@ -317,7 +318,7 @@
if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive) return;
viewWillBeResized = true;
[self hideStickIndicators];
// if(!_quickSwitchEnabled) [self saveTapped:nil];
if(!_quickSwitchEnabled) [self saveTapped:nil];
}
- (void)deviceOrientationDidChange{