Skip to content

Commit 63e90fa

Browse files
author
squalle0nhart
committed
update test
1 parent d5a955f commit 63e90fa

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

Auth/FirebaseAuthUI/FUIAuthPickerViewController.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ - (void)viewDidLoad {
121121

122122
CGFloat buttonContainerViewHeight =
123123
kSignInButtonHeight * numberOfButtons + kSignInButtonVerticalMargin * (numberOfButtons);
124-
CGRect buttonContainerViewFrame = CGRectMake(0, 0, kSignInButtonWidth, buttonContainerViewHeight);
124+
125+
CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
126+
127+
CGRect buttonContainerViewFrame = CGRectMake(10, 0, screenWidth - 20, buttonContainerViewHeight);
125128
_buttonContainerView = [[UIView alloc] initWithFrame:buttonContainerViewFrame];
126129
if (_scrollView) {
127130
[_contentView addSubview:_buttonContainerView];

Auth/FirebaseAuthUI/FUIAuthPickerViewController.xib

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
3-
<device id="retina4_7" orientation="portrait">
4-
<adaptation id="fullscreen"/>
5-
</device>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
3+
<device id="retina4_7" orientation="portrait" appearance="light"/>
64
<dependencies>
75
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
97
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
108
</dependencies>
119
<objects>
@@ -31,21 +29,27 @@
3129
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
3230
<subviews>
3331
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" editable="NO" usesAttributedText="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Xez-8g-dy2" customClass="FUIPrivacyAndTermsOfServiceView">
34-
<rect key="frame" x="0.0" y="0.0" width="359" height="49"/>
32+
<rect key="frame" x="8" y="0.0" width="359" height="49"/>
3533
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
3634
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
3735
<attributedString key="attributedText"/>
3836
<textInputTraits key="textInputTraits" autocapitalizationType="sentences" textContentType="url"/>
3937
<dataDetectorType key="dataDetectorTypes" link="YES"/>
4038
</textView>
4139
</subviews>
42-
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
40+
<color key="backgroundColor" systemColor="groupTableViewBackgroundColor"/>
4341
</view>
4442
</subviews>
45-
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
43+
<color key="backgroundColor" systemColor="groupTableViewBackgroundColor"/>
4644
</scrollView>
4745
</subviews>
4846
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
47+
<point key="canvasLocation" x="-162.40000000000001" y="102.99850074962519"/>
4948
</view>
5049
</objects>
50+
<resources>
51+
<systemColor name="groupTableViewBackgroundColor">
52+
<color red="0.94901960784313721" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
53+
</systemColor>
54+
</resources>
5155
</document>

Auth/FirebaseAuthUI/FUIAuthTableViewCell.xib

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
1111
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
1212
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" id="KGk-i7-Jjw" customClass="FUIAuthTableViewCell">
13-
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
13+
<rect key="frame" x="0.0" y="0.0" width="350" height="44"/>
1414
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
1515
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
16-
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
16+
<rect key="frame" x="0.0" y="0.0" width="350" height="44"/>
1717
<autoresizingMask key="autoresizingMask"/>
1818
<subviews>
1919
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="120" translatesAutoresizingMaskIntoConstraints="NO" id="sfp-hN-0cm">
@@ -23,7 +23,7 @@
2323
<nil key="highlightedColor"/>
2424
</label>
2525
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="placeholder" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="h79-sO-Wvr">
26-
<rect key="frame" x="81.5" y="11.5" width="222.5" height="21"/>
26+
<rect key="frame" x="81.5" y="11.5" width="252.5" height="21"/>
2727
<fontDescription key="fontDescription" type="system" pointSize="16"/>
2828
<textInputTraits key="textInputTraits" enablesReturnKeyAutomatically="YES"/>
2929
</textField>
@@ -36,6 +36,7 @@
3636
<constraint firstItem="h79-sO-Wvr" firstAttribute="leading" secondItem="sfp-hN-0cm" secondAttribute="trailing" constant="16" id="fQG-E1-E2k"/>
3737
<constraint firstItem="h79-sO-Wvr" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="vrf-rs-lcv"/>
3838
</constraints>
39+
<edgeInsets key="layoutMargins" top="8" left="8" bottom="8" right="8"/>
3940
</tableViewCellContentView>
4041
<connections>
4142
<outlet property="label" destination="sfp-hN-0cm" id="P56-j7-YbI"/>

0 commit comments

Comments
 (0)