fix: adjust network chart width when the label is enabled (#644)

This commit is contained in:
Serhiy Mytrovtsiy
2021-09-26 12:44:13 +02:00
parent 180ecc2449
commit d37636a5bd

View File

@@ -119,7 +119,7 @@ public class NetworkChart: WidgetWrapper {
self.chart.draw(NSRect(
x: x+offset,
y: 1,
width: box.bounds.width - 1 - x - offset,
width: box.bounds.width - 1 - offset,
height: box.bounds.height - ((box.bounds.origin.y + lineWidth)*2)
))