diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2017-01-20 15:39:35 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2017-01-31 13:54:35 +0300 |
commit | 16452528a43d58b0372fc65373ca9bf47c26072f (patch) | |
tree | 631e91e0c7005e54a3f61bb3d4bc3b69f0e45e0b /iphone | |
parent | 83976666d2f7ee7aa6eaaf486ac75c3bfbcb6c54 (diff) |
[MAPSME-3594] [ios] Fixed layout bug.
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm | 2 | ||||
-rw-r--r-- | iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.xib | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm b/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm index 98d2e1bf54..cc39739048 100644 --- a/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm +++ b/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.mm @@ -21,6 +21,7 @@ static CGFloat const kDividerTopConstant = -8.; @property(copy, nonatomic) MWMVoidBlock leftButtonAction; @property(copy, nonatomic, readwrite) MWMVoidBlock rightButtonAction; @property(weak, nonatomic) IBOutlet NSLayoutConstraint * dividerTop; +@property(weak, nonatomic) IBOutlet UIView * vDivider; @property(copy, nonatomic) NSString * statisticsEvent; @@ -409,6 +410,7 @@ static NSString * const kDefaultAlertNibName = @"MWMDefaultAlert"; } else { + alert.vDivider.hidden = YES; alert.leftButton.hidden = YES; alert.rightButtonWidth.constant = [alert.subviews.firstObject width]; } diff --git a/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.xib b/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.xib index c87a6eb9b6..6383e6d9a8 100644 --- a/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.xib +++ b/iphone/Maps/Classes/CustomAlert/DefaultAlert/MWMDefaultAlert.xib @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES"> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="16C67" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES"> <device id="retina4_7" orientation="portrait"> <adaptation id="fullscreen"/> </device> <dependencies> <deployment version="2048" identifier="iOS"/> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <customFonts key="customFonts"> @@ -17,11 +17,11 @@ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="MWMDefaultAlert"> - <rect key="frame" x="0.0" y="0.0" width="320" height="568"/> + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> <subviews> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zso-DD-6SG" userLabel="ContainerView"> - <rect key="frame" x="20" y="215" width="280" height="139"/> + <rect key="frame" x="47.5" y="264" width="280" height="139"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Title" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Grl-z5-2cE" userLabel="Title"> <rect key="frame" x="20" y="20" width="240" height="22"/> @@ -166,6 +166,7 @@ <outlet property="rightButton" destination="RSB-i6-pEP" id="DC9-9z-U2K"/> <outlet property="rightButtonWidth" destination="C3i-gd-pxv" id="YMb-U5-4iJ"/> <outlet property="titleLabel" destination="Grl-z5-2cE" id="p6A-DJ-xjR"/> + <outlet property="vDivider" destination="5H4-oD-Dex" id="7xY-ln-bYK"/> </connections> <point key="canvasLocation" x="305" y="172"/> </view> |