UI/UX: fix constraints
This patch fix the constraints broken when sending message
during call.
Change-Id: Ie790025f673a6280cbe915c7051de9ba242c4fae
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
diff --git a/src/AccAdvancedRingVC.mm b/src/AccAdvancedRingVC.mm
index 703e109..c02fbce 100644
--- a/src/AccAdvancedRingVC.mm
+++ b/src/AccAdvancedRingVC.mm
@@ -52,6 +52,7 @@
-(void) viewDidLoad {
[super viewDidLoad];
+ [[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewHeightSizable];
[self updateView];
}
diff --git a/src/AccAdvancedSipVC.mm b/src/AccAdvancedSipVC.mm
index 8f11e97..4189986 100644
--- a/src/AccAdvancedSipVC.mm
+++ b/src/AccAdvancedSipVC.mm
@@ -97,6 +97,8 @@
[maxAudioRTPRange setTag:MAXAUDIO_TAG];
[minVideoRTPRange setTag:MINVIDEO_TAG];
[maxVideoRTPRange setTag:MAXVIDEO_TAG];
+ [[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewHeightSizable];
+
}
-(void)viewDidLoad {
diff --git a/src/AccRingGeneralVC.mm b/src/AccRingGeneralVC.mm
index 1486a83..66b01d1 100644
--- a/src/AccRingGeneralVC.mm
+++ b/src/AccRingGeneralVC.mm
@@ -119,6 +119,7 @@
devicesTableView.dataSource = self;
blockedContactsTableView.delegate = self;
blockedContactsTableView.dataSource= self;
+ [[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewHeightSizable];
}
- (void)viewDidLoad {
diff --git a/src/AccSipGeneralVC.mm b/src/AccSipGeneralVC.mm
index 8746f04..6ae7ce0 100644
--- a/src/AccSipGeneralVC.mm
+++ b/src/AccSipGeneralVC.mm
@@ -75,6 +75,7 @@
-(void)viewDidLoad {
[super viewDidLoad];
+ [[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewHeightSizable];
[photoView setBordered:YES];
[addProfilePhotoImage setWantsLayer: YES];
[self setEditingMode:NO];
diff --git a/ui/Base.lproj/AccRingGeneral.xib b/ui/Base.lproj/AccRingGeneral.xib
index 2d131f3..3c864a9 100644
--- a/ui/Base.lproj/AccRingGeneral.xib
+++ b/ui/Base.lproj/AccRingGeneral.xib
@@ -166,13 +166,13 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</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"/>
<clipView key="contentView" drawsBackground="NO" id="wA7-kx-iIb">
<rect key="frame" x="1" y="1" width="578" height="148"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<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"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
@@ -249,7 +249,7 @@
</constraints>
</tableCellView>
<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"/>
</customView>
</prototypeCellViews>
@@ -432,7 +432,7 @@
</constraints>
</tableCellView>
<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"/>
</customView>
</prototypeCellViews>