Browse Source

refactor broken english.

pull/5943/head
Dan Walmsley 5 years ago
parent
commit
4cf49b659a
  1. 4
      native/Avalonia.Native/src/OSX/window.mm

4
native/Avalonia.Native/src/OSX/window.mm

@ -1844,8 +1844,8 @@ NSArray* AllLoopModes = [NSArray arrayWithObjects: NSDefaultRunLoopMode, NSEvent
- (void)updateShadow - (void)updateShadow
{ {
// Because of [invalidateShadow] of NSWindow is not working, // Common problem in Cocoa where [invalidateShadow] does work,
// We should do the trick as following to force the NSWindow re-renders its shadow. // This hack forces Cocoa to invalidate the shadow.
NSRect frame = [self frame]; NSRect frame = [self frame];
NSRect updatedFrame = NSMakeRect(frame.origin.x, frame.origin.y, frame.size.width + 1.0, frame.size.height + 1.0); NSRect updatedFrame = NSMakeRect(frame.origin.x, frame.origin.y, frame.size.width + 1.0, frame.size.height + 1.0);

Loading…
Cancel
Save