Skip to content

Commit 31b9cd3

Browse files
authored
Merge pull request #8440 from AvaloniaUI/fixes/osx-popups-dont-have-shadow
[OSX] popups shouldnt have shadow
2 parents 49aad04 + 423dacd commit 31b9cd3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

native/Avalonia.Native/src/OSX/WindowBaseImpl.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
[Window setContentMaxSize:lastMaxSize];
4949

5050
[Window setOpaque:false];
51-
[Window setHasShadow:true];
5251
}
5352

5453
HRESULT WindowBaseImpl::ObtainNSViewHandle(void **ret) {

native/Avalonia.Native/src/OSX/WindowImpl.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
_lastTitle = @"";
2525
_parent = nullptr;
2626
WindowEvents = events;
27+
28+
[Window setHasShadow:true];
2729

2830
OnInitialiseNSWindow();
2931
}

0 commit comments

Comments
 (0)