mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: adjusted network chart frame origin (#1636)
This commit is contained in:
@@ -161,6 +161,7 @@ public class NetworkChart: WidgetWrapper {
|
||||
height: box.bounds.height - offset
|
||||
)
|
||||
self.chart.setFrameSize(NSSize(width: chartFrame.width, height: chartFrame.height))
|
||||
self.chart.setFrameOrigin(NSPoint(x: chartFrame.origin.x, y: chartFrame.origin.y))
|
||||
self.chart.draw(chartFrame)
|
||||
|
||||
context.restoreGState()
|
||||
|
||||
Reference in New Issue
Block a user