mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: moved battery widget and popup view from dirtyRect to the frame
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user