ui: add missing layout contraints
Some xib files were broken on macOS Sierra due to missing auto layout
constraints. Xcode 8 seems to mess ui using partial auto layout rules.
Tuleap: #1038
Change-Id: If6d40cab6765acf0d29209aaf89911dd1bc89cd9
diff --git a/ui/Base.lproj/AudioPrefs.xib b/ui/Base.lproj/AudioPrefs.xib
index b7af8bb..20faad2 100644
--- a/ui/Base.lproj/AudioPrefs.xib
+++ b/ui/Base.lproj/AudioPrefs.xib
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="15G1004" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9532"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/>
+ <capability name="Alignment constraints to the first baseline" minToolsVersion="6.0"/>
+ <capability name="Alignment constraints with different attributes" minToolsVersion="5.1"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="AudioPrefsVC">
@@ -20,8 +22,8 @@
<rect key="frame" x="0.0" y="0.0" width="465" height="255"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
- <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ftI-JV-7cE">
- <rect key="frame" x="19" y="218" width="80" height="17"/>
+ <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ftI-JV-7cE">
+ <rect key="frame" x="18" y="219" width="80" height="16"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="76" id="U53-p2-FKw"/>
</constraints>
@@ -31,7 +33,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
- <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Y73-M5-wnx">
+ <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Y73-M5-wnx">
<rect key="frame" x="121" y="97" width="53" height="17"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="49" id="YoW-Fo-dqV"/>
@@ -42,7 +44,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
- <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="She-fN-vzD">
+ <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="She-fN-vzD">
<rect key="frame" x="103" y="194" width="49" height="17"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="45" id="rZa-0V-Bnx"/>
@@ -53,10 +55,11 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
- <button ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="kOg-hX-1Q5">
+ <button misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="kOg-hX-1Q5">
<rect key="frame" x="103" y="162" width="130" height="18"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="126" id="0X5-Ea-aDR"/>
+ <constraint firstAttribute="height" constant="14" id="Ian-yn-0fP"/>
</constraints>
<buttonCell key="cell" type="check" title="Always recording" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="jeD-Nk-KHA">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -66,8 +69,11 @@
<action selector="toggleAlwaysRecording:" target="-2" id="sOq-tA-ZBV"/>
</connections>
</button>
- <popUpButton verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="9SA-9E-IzQ" userLabel="Outputs">
+ <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9SA-9E-IzQ" userLabel="Outputs">
<rect key="frame" x="178" y="92" width="206" height="26"/>
+ <constraints>
+ <constraint firstAttribute="width" constant="201" id="vOX-51-SvC"/>
+ </constraints>
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="4Fp-hR-KdJ">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="menu"/>
@@ -81,7 +87,7 @@
<action selector="chooseOutput:" target="-2" id="SIh-kG-rV5"/>
</connections>
</popUpButton>
- <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="bMB-Zm-k0Z">
+ <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="bMB-Zm-k0Z">
<rect key="frame" x="20" y="124" width="99" height="17"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="95" id="D55-zT-N7E"/>
@@ -92,7 +98,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
- <button ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Jyg-5H-Ygw">
+ <button translatesAutoresizingMaskIntoConstraints="NO" id="Jyg-5H-Ygw">
<rect key="frame" x="178" y="18" width="94" height="18"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="90" id="xiQ-fa-bWr"/>
@@ -105,7 +111,7 @@
<action selector="toggleMuteDTMF:" target="-2" id="RNQ-D2-2m6"/>
</connections>
</button>
- <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wn2-fz-UW2">
+ <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wn2-fz-UW2">
<rect key="frame" x="132" y="56" width="42" height="17"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="38" id="f3z-ah-7gg"/>
@@ -116,7 +122,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
- <popUpButton verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="bK9-uH-jDb" userLabel="Inputs">
+ <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="bK9-uH-jDb" userLabel="Inputs">
<rect key="frame" x="178" y="51" width="206" height="26"/>
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="3mj-4K-xif">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
@@ -131,8 +137,11 @@
<action selector="chooseInput:" target="-2" id="ADO-Qj-tAz"/>
</connections>
</popUpButton>
- <pathControl verticalHuggingPriority="750" ambiguous="YES" misplaced="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nyE-tZ-v4C">
+ <pathControl verticalHuggingPriority="750" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nyE-tZ-v4C">
<rect key="frame" x="152" y="190" width="210" height="26"/>
+ <constraints>
+ <constraint firstAttribute="width" constant="204" id="UsR-SM-EYQ"/>
+ </constraints>
<pathCell key="cell" selectable="YES" editable="YES" alignment="left" pathStyle="popUp" id="SPB-Bz-vDM">
<font key="font" metaFont="system"/>
<url key="url" string="file://localhost/Applications/"/>
@@ -144,11 +153,28 @@
</pathControl>
</subviews>
<constraints>
+ <constraint firstAttribute="trailing" secondItem="9SA-9E-IzQ" secondAttribute="trailing" constant="84" id="0Zb-hF-biO"/>
+ <constraint firstItem="ftI-JV-7cE" firstAttribute="top" secondItem="deY-JV-Rfe" secondAttribute="top" constant="20" id="3tz-DN-1lf"/>
+ <constraint firstItem="bK9-uH-jDb" firstAttribute="top" secondItem="9SA-9E-IzQ" secondAttribute="bottom" constant="20" id="B46-DU-kIx"/>
<constraint firstItem="9SA-9E-IzQ" firstAttribute="leading" secondItem="bK9-uH-jDb" secondAttribute="leading" id="CXc-00-v8L"/>
+ <constraint firstItem="bMB-Zm-k0Z" firstAttribute="top" secondItem="kOg-hX-1Q5" secondAttribute="bottom" constant="23" id="Fo0-5T-cmf"/>
+ <constraint firstItem="bMB-Zm-k0Z" firstAttribute="leading" secondItem="deY-JV-Rfe" secondAttribute="leading" constant="22" id="GhA-ij-Oet"/>
+ <constraint firstItem="She-fN-vzD" firstAttribute="baseline" secondItem="nyE-tZ-v4C" secondAttribute="firstBaseline" id="KdN-ZV-7BY"/>
+ <constraint firstItem="Y73-M5-wnx" firstAttribute="centerY" secondItem="9SA-9E-IzQ" secondAttribute="centerY" id="Njt-Kv-M05"/>
+ <constraint firstAttribute="bottom" secondItem="Jyg-5H-Ygw" secondAttribute="bottom" constant="20" symbolic="YES" id="Oln-9b-2Ri"/>
+ <constraint firstItem="ftI-JV-7cE" firstAttribute="leading" secondItem="deY-JV-Rfe" secondAttribute="leading" constant="20" id="SL1-2n-Uik"/>
+ <constraint firstItem="Jyg-5H-Ygw" firstAttribute="top" secondItem="bK9-uH-jDb" secondAttribute="bottom" constant="20" id="VHA-pW-hf8"/>
+ <constraint firstItem="nyE-tZ-v4C" firstAttribute="top" secondItem="deY-JV-Rfe" secondAttribute="top" constant="41" id="dsL-QJ-MwJ"/>
+ <constraint firstItem="kOg-hX-1Q5" firstAttribute="top" secondItem="She-fN-vzD" secondAttribute="bottom" constant="16" id="fdW-vI-uOc"/>
+ <constraint firstItem="She-fN-vzD" firstAttribute="leading" secondItem="deY-JV-Rfe" secondAttribute="leading" constant="105" id="gLd-G7-ZVU"/>
<constraint firstItem="bK9-uH-jDb" firstAttribute="leading" secondItem="wn2-fz-UW2" secondAttribute="trailing" constant="5" id="hfr-G8-btB"/>
+ <constraint firstItem="bMB-Zm-k0Z" firstAttribute="top" secondItem="ftI-JV-7cE" secondAttribute="bottom" constant="77" id="nma-zT-ejt"/>
+ <constraint firstItem="9SA-9E-IzQ" firstAttribute="trailing" secondItem="bK9-uH-jDb" secondAttribute="trailing" id="pJV-4e-1EB"/>
+ <constraint firstItem="wn2-fz-UW2" firstAttribute="centerY" secondItem="bK9-uH-jDb" secondAttribute="centerY" id="ryI-F3-Zga"/>
<constraint firstItem="9SA-9E-IzQ" firstAttribute="leading" secondItem="Y73-M5-wnx" secondAttribute="trailing" constant="5" id="te2-Bj-JJV"/>
<constraint firstItem="nyE-tZ-v4C" firstAttribute="leading" secondItem="She-fN-vzD" secondAttribute="trailing" constant="5" id="w8a-Pj-Dsq"/>
<constraint firstItem="9SA-9E-IzQ" firstAttribute="leading" secondItem="Jyg-5H-Ygw" secondAttribute="leading" id="wSL-sj-u5S"/>
+ <constraint firstItem="She-fN-vzD" firstAttribute="leading" secondItem="kOg-hX-1Q5" secondAttribute="leading" id="yol-9U-IE6"/>
</constraints>
<point key="canvasLocation" x="170.5" y="41.5"/>
</customView>