mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Merge pull request #8167 from seanchas116/fix-modal-corner
🍎 Make sure no round corners for modal windows
This commit is contained in:
@@ -1402,10 +1402,10 @@ void NativeWindowMac::ShowWindowButton(NSWindowButton button) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowMac::InstallView() {
|
void NativeWindowMac::InstallView() {
|
||||||
// Make sure the bottom corner is rounded: http://crbug.com/396264.
|
// Make sure the bottom corner is rounded for non-modal windows: http://crbug.com/396264.
|
||||||
// But do not enable it on OS X 10.9 for transparent window, otherwise a
|
// But do not enable it on OS X 10.9 for transparent window, otherwise a
|
||||||
// semi-transparent frame would show.
|
// semi-transparent frame would show.
|
||||||
if (!(transparent() && base::mac::IsOSMavericks()))
|
if (!(transparent() && base::mac::IsOSMavericks()) && !is_modal())
|
||||||
[[window_ contentView] setWantsLayer:YES];
|
[[window_ contentView] setWantsLayer:YES];
|
||||||
|
|
||||||
NSView* view = inspectable_web_contents()->GetView()->GetNativeView();
|
NSView* view = inspectable_web_contents()->GetView()->GetNativeView();
|
||||||
|
|||||||
Reference in New Issue
Block a user