fix: adjusted network chart frame origin (#1636)

This commit is contained in:
Serhiy Mytrovtsiy
2023-10-03 19:33:04 +02:00
parent e4b176b912
commit c0cf0b2011

View File

@@ -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()