Commit 782ac77e authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

UI/UX: fix margins

Change-Id: Ib416899e5d4edbb6d1719e314f3c4eb94bcc747f
parent 757489b2
......@@ -52,7 +52,7 @@ const NSInteger BOOTSTRAP_SERVER_TAG = 300;
-(void) viewDidLoad {
[super viewDidLoad];
[[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin];
[[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewWidthSizable];
[self updateView];
}
......
......@@ -125,7 +125,7 @@ typedef NS_ENUM(NSInteger, TagViews) {
devicesTableView.dataSource = self;
blockedContactsTableView.delegate = self;
blockedContactsTableView.dataSource= self;
[[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin];
[[self view] setAutoresizingMask: NSViewMinXMargin | NSViewMaxXMargin | NSViewWidthSizable];
}
- (void)viewDidLoad {
......
......@@ -114,6 +114,9 @@ CGFloat const VIEW_INSET = 40;
CGRect settingsFrame = accountGeneralVC.view.frame;
settingsFrame.size.height = settingsFrame.size.height + accountAdvancedVC.view.frame.size.height;
NSView* container = [[NSView alloc] initWithFrame:settingsFrame];
CGRect advancedFrame = accountAdvancedVC.view.frame;
advancedFrame.size.width = settingsFrame.size.width;
accountAdvancedVC.view.frame = advancedFrame;
[container addSubview:accountAdvancedVC.view];
CGRect generalSettingsFrame = accountGeneralVC.view.frame;
generalSettingsFrame.origin.y = accountAdvancedVC.view.frame.size.height;
......
This diff is collapsed.
......@@ -215,9 +215,6 @@
</button>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="z9N-MQ-FzB">
<rect key="frame" x="150" y="13" width="100" height="32"/>
<constraints>
<constraint firstAttribute="width" constant="88" id="tow-r7-Hh6"/>
</constraints>
<buttonCell key="cell" type="push" title="Advanced" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="iEr-fN-5vD">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
......
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