further fix widget layout with orientation change issue
This commit is contained in:
1 parent
fcbc844587
commit
8fb4829aef
2 files changed
+3
-3
No files matched your search
@@ -311,8 +311,7 @@ static CGRect layoutViewBounds;
|
|||||||
position.x = position.x / layoutViewBounds.size.width;
|
position.x = position.x / layoutViewBounds.size.width;
|
||||||
position.y = position.y / layoutViewBounds.size.height;
|
position.y = position.y / layoutViewBounds.size.height;
|
||||||
}
|
}
|
||||||
// asdfsda;
|
NSLog(@"layoutToolView bounds: %f, %f", layoutViewBounds.size.width, layoutViewBounds.size.height);
|
||||||
NSLog(@"sef.view 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);
|
NSLog(@"position: %f, %f, denormalized position: %f, %f", position.x, position.y, newPosition.x, newPosition.y);
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -298,6 +298,7 @@
|
|||||||
selectedControllerLayer = nil;
|
selectedControllerLayer = nil;
|
||||||
|
|
||||||
_oscProfilesTableViewController.layoutViewBounds = self.view.bounds;
|
_oscProfilesTableViewController.layoutViewBounds = self.view.bounds;
|
||||||
|
[OSCProfilesManager setLayoutViewBounds:self.view.bounds];
|
||||||
[OSCProfilesManager setOnScreenWidgetViewsSet:self.onScreenWidgetViews]; // pass the keyboard button dict to profiles manager
|
[OSCProfilesManager setOnScreenWidgetViewsSet:self.onScreenWidgetViews]; // pass the keyboard button dict to profiles manager
|
||||||
[self reloadOnScreenWidgetViews];
|
[self reloadOnScreenWidgetViews];
|
||||||
[self reloadLegacyOnScreenControls];
|
[self reloadLegacyOnScreenControls];
|
||||||
@@ -317,7 +318,7 @@
|
|||||||
if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive) return;
|
if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive) return;
|
||||||
viewWillBeResized = true;
|
viewWillBeResized = true;
|
||||||
[self hideStickIndicators];
|
[self hideStickIndicators];
|
||||||
// if(!_quickSwitchEnabled) [self saveTapped:nil];
|
if(!_quickSwitchEnabled) [self saveTapped:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)deviceOrientationDidChange{
|
- (void)deviceOrientationDidChange{
|
||||||
|
|||||||
Reference in new issue
Block a user