[ios] Map buttons coordinates changed

This commit is contained in:
Igor Khmurets 2013-12-05 18:12:18 +03:00 committed by Alex Zolotarev
parent 7784af2de5
commit da31f9e36e
3 changed files with 9 additions and 9 deletions

View file

@ -640,8 +640,8 @@ const long long LITE_IDL = 431183278L;
{
if (!_locationButton)
{
_locationButton = [[LocationButton alloc] initWithFrame:CGRectMake(4.5, 0, 60, 60)];
_locationButton.maxY = self.view.height - 3.5;
_locationButton = [[LocationButton alloc] initWithFrame:CGRectMake(0, 0, 60, 60)];
_locationButton.center = CGPointMake(30, self.view.height - 28);
_locationButton.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin;
[_locationButton addTarget:self action:@selector(onMyPositionClicked:) forControlEvents:UIControlEventTouchUpInside];
}
@ -669,13 +669,13 @@ const long long LITE_IDL = 431183278L;
_sideToolbar = [[SideToolbar alloc] initWithFrame:CGRectMake(self.view.width, 0, 260, self.view.height)];
_sideToolbar.delegate = self;
UIButton * toolbarButton = [[UIButton alloc] initWithFrame:CGRectMake(0, self.view.height - 80, 50, 70)];
UIButton * toolbarButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 50, 70)];
toolbarButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin;
toolbarButton.maxX = self.view.width;
toolbarButton.minY = self.view.height - 80;
toolbarButton.midY = self.view.height - 35;
[toolbarButton addTarget:self action:@selector(toolbarButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
CGFloat tailShift = 4;
CGFloat tailShift = 7;
UIImageView * tailLight = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SlideViewLight"]];
tailLight.maxX = toolbarButton.width;

View file

@ -26,7 +26,7 @@
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="VXD-8S-Q8b">
<rect key="frame" x="0.0" y="44" width="52" height="44"/>
<rect key="frame" x="5" y="41" width="52" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" image="btn-zoom-out.png">
@ -37,7 +37,7 @@
</connections>
</button>
<button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="5WX-Yi-o98">
<rect key="frame" x="0.0" y="0.0" width="52" height="44"/>
<rect key="frame" x="5" y="3" width="52" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" image="btn-zoom-in.png">

View file

@ -26,7 +26,7 @@
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="Axx-O4-FC8">
<rect key="frame" x="0.0" y="44" width="52" height="44"/>
<rect key="frame" x="5" y="41" width="52" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMinY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" image="btn-zoom-out.png">
@ -37,7 +37,7 @@
</connections>
</button>
<button opaque="NO" contentMode="center" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="pnA-Jo-zGQ">
<rect key="frame" x="0.0" y="0.0" width="52" height="44"/>
<rect key="frame" x="5" y="3" width="52" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<state key="normal" image="btn-zoom-in.png">