[ios] Fixed bookmark positioning after screen rotation

This commit is contained in:
Alex Zolotarev 2012-08-27 23:57:38 +03:00 committed by Alex Zolotarev
parent 0070466fc4
commit cf6d7afc8d

View file

@ -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];
}