fix network dots text visibility;

This commit is contained in:
Serhiy Mytrovtsiy
2020-01-20 13:31:10 +01:00
parent 9f487e6964
commit cba74b00a3
2 changed files with 5 additions and 0 deletions

View File

@@ -19,6 +19,10 @@ class NetworkDotsTextView: NSView, Widget {
var downloadValue: NSTextField = NSTextField()
var uploadValue: NSTextField = NSTextField()
override var intrinsicContentSize: CGSize {
return CGSize(width: self.frame.size.width, height: self.frame.size.height)
}
override init(frame: NSRect) {
self.download = 0
self.upload = 0

View File

@@ -11,6 +11,7 @@ import Cocoa
protocol Widget {
var name: String { get set } // module name
var menus: [NSMenuItem] { get } // module settings
var intrinsicContentSize: CGSize { get }
func start()
func redraw()