forked from organicmaps/organicmaps
[ios] Minor fixes in place page layout.
This commit is contained in:
parent
a115f85ffa
commit
5064116a44
7 changed files with 10 additions and 10 deletions
|
@ -81,7 +81,7 @@ extern CGFloat const kBookmarkCellHeight = 135.;
|
|||
|
||||
static CGFloat const kPlacePageTitleKoefficient = 0.63;
|
||||
static CGFloat const kLeftOffset = 16.;
|
||||
static CGFloat const kDirectionArrowSide = 32.;
|
||||
static CGFloat const kDirectionArrowSide = 25.;
|
||||
static CGFloat const kOffsetFromTitleToDistance = 12.;
|
||||
static CGFloat const kOffsetFromDistanceToArrow = 8.;
|
||||
static CGFloat const kTitleBottomOffset = 2.;
|
||||
|
@ -208,7 +208,7 @@ static CGFloat const kTitleBottomOffset = 2.;
|
|||
label.numberOfLines = 0;
|
||||
label.text = self.entity.metadataValues[indexPath.row];
|
||||
[label sizeToFit];
|
||||
CGFloat const defaultCellOffset = 26.;
|
||||
CGFloat const defaultCellOffset = 24.;
|
||||
return MAX(label.height + defaultCellOffset, defaultCellHeight);
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ extern NSString * const kBookmarkCellWebViewDidFinishLoadContetnNotification = @
|
|||
- (void)layoutSubviews
|
||||
{
|
||||
CGFloat const leftOffset = 16.;
|
||||
CGFloat const topOffset = 14.;
|
||||
CGFloat const topOffset = 15.;
|
||||
self.icon.origin = CGPointMake(leftOffset, topOffset);
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ extern NSString * const kUserDefaultsLatLonAsDMSKey;
|
|||
- (void)layoutSubviews
|
||||
{
|
||||
CGFloat const leftOffset = 16.;
|
||||
CGFloat const topOffset = 14.;;
|
||||
CGFloat const topOffset = 15.;;
|
||||
self.icon.origin = CGPointMake(leftOffset, topOffset);
|
||||
[self.textContainer setMinX:3 * leftOffset];
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="07N-gj-Msx">
|
||||
<rect key="frame" x="278" y="14" width="28" height="28"/>
|
||||
<rect key="frame" x="272" y="14" width="28" height="28"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
|
||||
<state key="normal">
|
||||
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
|
||||
|
@ -63,11 +63,11 @@
|
|||
</userDefinedRuntimeAttributes>
|
||||
</label>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_bookmark" id="Sgy-EK-ZNd">
|
||||
<rect key="frame" x="16" y="14" width="16" height="16"/>
|
||||
<rect key="frame" x="16" y="15" width="16" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxY="YES"/>
|
||||
</imageView>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="ic_arrow_gray" id="7ox-1S-vLm">
|
||||
<rect key="frame" x="298" y="92" width="8" height="12"/>
|
||||
<rect key="frame" x="296" y="95" width="8" height="12"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES"/>
|
||||
</imageView>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="rer-vk-fBj">
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" id="xwC-DR-6Il">
|
||||
<rect key="frame" x="16" y="14" width="16" height="16"/>
|
||||
<rect key="frame" x="16" y="15" width="16" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxY="YES"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="viE-zJ-wsl" customClass="CopyLabel">
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" id="DT5-2i-vCG">
|
||||
<rect key="frame" x="16" y="14" width="16" height="16"/>
|
||||
<rect key="frame" x="16" y="15" width="16" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxY="YES"/>
|
||||
</imageView>
|
||||
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" editable="NO" id="T5l-Sb-Hfo">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14D131" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue