|
@@ -64,8 +64,13 @@ class KMOpenDMGPopupBootWC: NSWindowController {
|
|
|
signInTextView.isSelectable = true
|
|
|
signInTextView.textColor = NSColor.black
|
|
|
signInTextView.font = NSFont.SFProTextRegularFont(12)
|
|
|
- signInTextView.bounds = signInTextView.enclosingScrollView?.contentView.bounds ?? .zero
|
|
|
- signInTextView.autoresizingMask = [.width, .height]
|
|
|
+
|
|
|
+ if let _ = signInTextView.superview {
|
|
|
+ signInTextView.km_add_left_constraint()
|
|
|
+ signInTextView.km_add_top_constraint()
|
|
|
+ signInTextView.km_add_trailing_constraint()
|
|
|
+ signInTextView.km_add_height_constraint(constant: 30)
|
|
|
+ }
|
|
|
let tipsString = NSLocalizedString("Already have an account? %@", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
let specialOffer = NSLocalizedString("Sign in", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
let fullString = String(format: tipsString, specialOffer)
|