fix: moved battery widget and popup view from dirtyRect to the frame

This commit is contained in:
Serhiy Mytrovtsiy
2023-09-30 18:02:47 +02:00
parent 30f799d6f1
commit 80b39144b1
2 changed files with 5 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ public class BatteryWidget: WidgetWrapper {
let batteryFrame = NSBezierPath(roundedRect: NSRect(
x: x + borderWidth + offset,
y: ((dirtyRect.size.height - batterySize.height)/2) + offset,
y: ((self.frame.size.height - batterySize.height)/2) + offset,
width: batterySize.width - borderWidth,
height: batterySize.height - borderWidth
), xRadius: 2, yRadius: 2)