Skip to content

Commit

Permalink
fix: regression on collectionviewitem titles (not showing)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis.pontoise authored and lwouis committed Mar 10, 2020
1 parent 725a030 commit 8cb6d86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions alt-tab-macos/ui/generic-components/text/BaseLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Cocoa
class BaseLabel: NSTextView {
convenience init(_ text: String) {
self.init(frame: .zero)
textContainer!.size.width = 1000
string = text
setup()
}
Expand All @@ -15,12 +14,11 @@ class BaseLabel: NSTextView {

private func setup() {
drawsBackground = true
backgroundColor = NSColor.blue
backgroundColor = .clear
isSelectable = false
isEditable = false
enabledTextCheckingTypes = 0
layoutManager!.ensureLayout(for: textContainer!)
frame = layoutManager!.usedRect(for: textContainer!)
fit(frame.size.width, frame.size.height)
}
}

0 comments on commit 8cb6d86

Please sign in to comment.