forked from organicmaps/organicmaps
[ios] Fixed bookmark positioning after screen rotation
This commit is contained in:
parent
0070466fc4
commit
cf6d7afc8d
1 changed files with 4 additions and 0 deletions
|
@ -368,6 +368,8 @@ NSInteger compareAddress(id l, id r, void * context)
|
|||
|
||||
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
|
||||
{
|
||||
// Update popup bookmark position
|
||||
[self updateDataAfterScreenChanged];
|
||||
return YES; // We support all orientations
|
||||
}
|
||||
|
||||
|
@ -421,6 +423,8 @@ NSInteger compareAddress(id l, id r, void * context)
|
|||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[self Invalidate];
|
||||
// Update popup bookmark position
|
||||
[self updateDataAfterScreenChanged];
|
||||
[super viewWillAppear:animated];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue