mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-01-18 22:39:08 +00:00
Default view controller sizes
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
This commit is contained in:
parent
470532d146
commit
97fec0d992
@ -18,6 +18,7 @@ class StatusMenu: NSMenu {
|
|||||||
manageTunnelsRootVC = ManageTunnelsRootViewController(tunnelsManager: tunnelsManager)
|
manageTunnelsRootVC = ManageTunnelsRootViewController(tunnelsManager: tunnelsManager)
|
||||||
let window = NSWindow(contentViewController: manageTunnelsRootVC!)
|
let window = NSWindow(contentViewController: manageTunnelsRootVC!)
|
||||||
window.title = tr("macWindowTitleManageTunnels")
|
window.title = tr("macWindowTitleManageTunnels")
|
||||||
|
window.setContentSize(NSSize(width: 800, height: 480))
|
||||||
window.setFrameAutosaveName(NSWindow.FrameAutosaveName("ManageTunnelsWindow")) // Auto-save window position and size
|
window.setFrameAutosaveName(NSWindow.FrameAutosaveName("ManageTunnelsWindow")) // Auto-save window position and size
|
||||||
return window
|
return window
|
||||||
}()
|
}()
|
||||||
|
@ -24,8 +24,8 @@ class TunnelEditViewController: NSViewController {
|
|||||||
|
|
||||||
let textView: ConfTextView = {
|
let textView: ConfTextView = {
|
||||||
let textView = ConfTextView()
|
let textView = ConfTextView()
|
||||||
let minWidth: CGFloat = 120
|
let minWidth: CGFloat = 550
|
||||||
let minHeight: CGFloat = 60
|
let minHeight: CGFloat = 310
|
||||||
textView.minSize = NSSize(width: 0, height: minHeight)
|
textView.minSize = NSSize(width: 0, height: minHeight)
|
||||||
textView.maxSize = NSSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude)
|
textView.maxSize = NSSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude)
|
||||||
textView.autoresizingMask = [.width, .height]
|
textView.autoresizingMask = [.width, .height]
|
||||||
|
Loading…
Reference in New Issue
Block a user