diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-11 16:51:40 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-14 14:52:37 +0530 |
commit | 55f022688da6aa700734217e2710fa5baac7ddfe (patch) | |
tree | 20eccdc4bb1bf62bb5dba814120800858e73a1f3 /WireGuard/WireGuard/UI | |
parent | macOS: Fix editor scrolling (diff) | |
download | wireguard-apple-55f022688da6aa700734217e2710fa5baac7ddfe.tar.xz wireguard-apple-55f022688da6aa700734217e2710fa5baac7ddfe.zip |
macOS: To set default size, change frame instead of min size
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift index 4edb17a..2a5af01 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift @@ -24,8 +24,8 @@ class TunnelEditViewController: NSViewController { let textView: ConfTextView = { let textView = ConfTextView() - let minWidth: CGFloat = 550 - let minHeight: CGFloat = 310 + let minWidth: CGFloat = 120 + let minHeight: CGFloat = 60 textView.minSize = NSSize(width: 0, height: minHeight) textView.maxSize = NSSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude) textView.autoresizingMask = [.width] // Width should be based on superview width @@ -172,7 +172,7 @@ class TunnelEditViewController: NSViewController { containerView.widthAnchor.constraint(greaterThanOrEqualToConstant: 180), containerView.heightAnchor.constraint(greaterThanOrEqualToConstant: 240) ]) - containerView.frame = NSRect(x: 0, y: 0, width: 480, height: 320) + containerView.frame = NSRect(x: 0, y: 0, width: 600, height: 480) self.view = containerView } |