Commit 3164fb0b authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk

UI/UX: fix constraints

This patch fix the constraints broken when sending message
during call.

Change-Id: Ie790025f673a6280cbe915c7051de9ba242c4fae
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 14366819
...@@ -52,6 +52,7 @@ const NSInteger BOOTSTRAP_SERVER_TAG = 300; ...@@ -52,6 +52,7 @@ const NSInteger BOOTSTRAP_SERVER_TAG = 300;
-(void) viewDidLoad { -(void) viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
[[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewHeightSizable];
[self updateView]; [self updateView];
} }
......
...@@ -97,6 +97,8 @@ NSString *TLS_PROTOCOL_TLSv1_2 = @"TLSv1_2"; ...@@ -97,6 +97,8 @@ NSString *TLS_PROTOCOL_TLSv1_2 = @"TLSv1_2";
[maxAudioRTPRange setTag:MAXAUDIO_TAG]; [maxAudioRTPRange setTag:MAXAUDIO_TAG];
[minVideoRTPRange setTag:MINVIDEO_TAG]; [minVideoRTPRange setTag:MINVIDEO_TAG];
[maxVideoRTPRange setTag:MAXVIDEO_TAG]; [maxVideoRTPRange setTag:MAXVIDEO_TAG];
[[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewHeightSizable];
} }
-(void)viewDidLoad { -(void)viewDidLoad {
......
...@@ -119,6 +119,7 @@ typedef NS_ENUM(NSInteger, TagViews) { ...@@ -119,6 +119,7 @@ typedef NS_ENUM(NSInteger, TagViews) {
devicesTableView.dataSource = self; devicesTableView.dataSource = self;
blockedContactsTableView.delegate = self; blockedContactsTableView.delegate = self;
blockedContactsTableView.dataSource= self; blockedContactsTableView.dataSource= self;
[[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewHeightSizable];
} }
- (void)viewDidLoad { - (void)viewDidLoad {
......
...@@ -75,6 +75,7 @@ typedef NS_ENUM(NSInteger, TagViews) { ...@@ -75,6 +75,7 @@ typedef NS_ENUM(NSInteger, TagViews) {
-(void)viewDidLoad { -(void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
[[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewHeightSizable];
[photoView setBordered:YES]; [photoView setBordered:YES];
[addProfilePhotoImage setWantsLayer: YES]; [addProfilePhotoImage setWantsLayer: YES];
[self setEditingMode:NO]; [self setEditingMode:NO];
......
...@@ -166,13 +166,13 @@ ...@@ -166,13 +166,13 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
</textField> </textField>
<scrollView autohidesScrollers="YES" horizontalLineScroll="57" horizontalPageScroll="10" verticalLineScroll="57" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1uj-O6-qH5"> <scrollView autohidesScrollers="YES" horizontalLineScroll="52" horizontalPageScroll="10" verticalLineScroll="52" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1uj-O6-qH5">
<rect key="frame" x="20" y="120" width="580" height="150"/> <rect key="frame" x="20" y="120" width="580" height="150"/>
<clipView key="contentView" drawsBackground="NO" id="wA7-kx-iIb"> <clipView key="contentView" drawsBackground="NO" id="wA7-kx-iIb">
<rect key="frame" x="1" y="1" width="578" height="148"/> <rect key="frame" x="1" y="1" width="578" height="148"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" selectionHighlightStyle="none" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="55" rowSizeStyle="automatic" viewBased="YES" id="Zw2-AJ-V23"> <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" selectionHighlightStyle="none" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="50" rowSizeStyle="automatic" viewBased="YES" id="Zw2-AJ-V23">
<rect key="frame" x="0.0" y="0.0" width="578" height="148"/> <rect key="frame" x="0.0" y="0.0" width="578" height="148"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/> <size key="intercellSpacing" width="3" height="2"/>
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
</constraints> </constraints>
</tableCellView> </tableCellView>
<customView identifier="HoverRowView" id="CPL-go-ebR" customClass="HoverTableRowView"> <customView identifier="HoverRowView" id="CPL-go-ebR" customClass="HoverTableRowView">
<rect key="frame" x="1" y="53" width="575" height="55"/> <rect key="frame" x="1" y="53" width="575" height="50"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
</customView> </customView>
</prototypeCellViews> </prototypeCellViews>
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
</constraints> </constraints>
</tableCellView> </tableCellView>
<customView identifier="HoverRowView" id="UPU-qX-wdn" customClass="HoverTableRowView"> <customView identifier="HoverRowView" id="UPU-qX-wdn" customClass="HoverTableRowView">
<rect key="frame" x="1" y="52" width="575" height="55"/> <rect key="frame" x="1" y="52" width="575" height="52"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
</customView> </customView>
</prototypeCellViews> </prototypeCellViews>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment