forked from organicmaps/organicmaps
Merge pull request #370 from VladiMihaylenko/vm-master
[ios] Added small fix for portrait place page.
This commit is contained in:
commit
4424d07321
1 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,6 @@ typedef NS_ENUM(NSUInteger, MWMiPhonePortraitPlacePageState)
|
|||
- (void)reloadBookmark
|
||||
{
|
||||
[super reloadBookmark];
|
||||
[self determineIfIsHover];
|
||||
[self updateTargetPoint];
|
||||
}
|
||||
|
||||
|
@ -127,6 +126,7 @@ typedef NS_ENUM(NSUInteger, MWMiPhonePortraitPlacePageState)
|
|||
|
||||
- (void)updateTargetPoint
|
||||
{
|
||||
[self determineIfIsHover];
|
||||
UIView * ppv = self.extendedPlacePageView;
|
||||
switch (self.state)
|
||||
{
|
||||
|
@ -163,7 +163,8 @@ typedef NS_ENUM(NSUInteger, MWMiPhonePortraitPlacePageState)
|
|||
BOOL const isLandscape = size.width > size.height;
|
||||
CGFloat const width = isLandscape ? size.height : size.width;
|
||||
CGFloat const height = isLandscape ? size.width : size.height;
|
||||
return {width / 2, height + self.topY};
|
||||
CGFloat const gapHeight = -8.;
|
||||
return {width / 2, height + self.topY + (self.isHover ? 0 : gapHeight)};
|
||||
}
|
||||
|
||||
- (CGPoint)getHoverTargetPoint
|
||||
|
|
Loading…
Add table
Reference in a new issue