Skip to content

Commit

Permalink
BF: Cannot join from a room preview for room with a long topic (#1645)
Browse files Browse the repository at this point in the history
Make sure the topic use all container width but keep it centered if the topic string is short
  • Loading branch information
manuroe committed Mar 9, 2018
1 parent 9b6b71a commit 8c9c075
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Riot/Views/RoomTitle/PreviewRoomTitleView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@
</connections>
</textField>
<textView opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Room Topic" textAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="Tk0-pA-9a0">
<rect key="frame" x="262" y="153" width="76" height="17"/>
<rect key="frame" x="31" y="153" width="538" height="17"/>
<accessibility key="accessibilityConfiguration" identifier="RoomTopic"/>
<constraints>
<constraint firstAttribute="width" constant="76" id="BEk-1P-gqy"/>
</constraints>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
Expand Down Expand Up @@ -90,6 +87,7 @@
<constraint firstItem="Tk0-pA-9a0" firstAttribute="top" secondItem="6uH-I3-RQg" secondAttribute="bottom" constant="5" id="TUS-xE-O6O"/>
<constraint firstItem="6uH-I3-RQg" firstAttribute="top" secondItem="4yt-FK-V2Z" secondAttribute="bottom" constant="8" id="Wsd-KT-hxy"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="6uH-I3-RQg" secondAttribute="trailing" constant="31" id="aK3-vQ-EVu"/>
<constraint firstItem="Tk0-pA-9a0" firstAttribute="width" secondItem="BkF-x3-7fX" secondAttribute="width" priority="750" id="bWP-2y-KTg"/>
<constraint firstItem="ou0-3Z-weL" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="BkF-x3-7fX" secondAttribute="leading" constant="31" id="c9h-h2-VEs"/>
<constraint firstItem="6uH-I3-RQg" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="BkF-x3-7fX" secondAttribute="leading" constant="31" id="gnq-cO-l4Y"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="ou0-3Z-weL" secondAttribute="trailing" constant="31" id="sPZ-Hp-JeH"/>
Expand Down

0 comments on commit 8c9c075

Please sign in to comment.