We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97680f1 + ee44309 commit cf9875bCopy full SHA for cf9875b
DeveloperExcuses/DeveloperExcusesView.swift
@@ -57,10 +57,11 @@ class DeveloperExcusesView: ScreenSaverView {
57
super.draw(rect)
58
59
var newFrame = label.frame
60
- let height = (label.stringValue as NSString).size(withAttributes: [NSFontAttributeName: label.font!]).height
61
- newFrame.size.height = height;
62
- newFrame.origin.y = rect.size.height / 2;
63
- label.frame = newFrame;
+ newFrame.origin.x = 0
+ newFrame.origin.y = rect.size.height / 2
+ newFrame.size.width = rect.size.width
+ newFrame.size.height = (label.stringValue as NSString).size(withAttributes: [NSFontAttributeName: label.font!]).height
64
+ label.frame = newFrame
65
66
NSColor.black.setFill()
67
NSRectFill(rect)
0 commit comments