@@ -127,7 +127,7 @@ public class OAuth2WebViewController: NSViewController, WKNavigationDelegate, NS
127127
128128 view. addSubview ( webView)
129129 view. addConstraint ( NSLayoutConstraint ( item: webView, attribute: . top, relatedBy: . equal, toItem: view, attribute: . top, multiplier: 1.0 , constant: 0.0 ) )
130- view. addConstraint ( NSLayoutConstraint ( item: webView, attribute: . bottom, relatedBy: . equal, toItem: view, attribute: . bottom, multiplier: 1.0 , constant: 0.0 ) )
130+ view. addConstraint ( NSLayoutConstraint ( item: webView, attribute: . bottom, relatedBy: . equal, toItem: view, attribute: . bottom, multiplier: 1.0 , constant: ( willBecomeSheet ? - 40.0 : 0.0 ) ) )
131131 view. addConstraint ( NSLayoutConstraint ( item: webView, attribute: . left, relatedBy: . equal, toItem: view, attribute: . left, multiplier: 1.0 , constant: 0.0 ) )
132132 view. addConstraint ( NSLayoutConstraint ( item: webView, attribute: . right, relatedBy: . equal, toItem: view, attribute: . right, multiplier: 1.0 , constant: 0.0 ) )
133133
@@ -136,6 +136,7 @@ public class OAuth2WebViewController: NSViewController, WKNavigationDelegate, NS
136136 let button = NSButton ( frame: NSRect ( x: 0 , y: 0 , width: 120 , height: 20 ) )
137137 button. translatesAutoresizingMaskIntoConstraints = false
138138 button. title = " Cancel "
139+ button. bezelStyle = . rounded
139140 button. target = self
140141 button. action = #selector( OAuth2WebViewController . cancel ( _: ) )
141142 view. addSubview ( button)
0 commit comments