mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
viewDidMoveToSuperview may not be implemented
This commit is contained in:
@@ -244,7 +244,9 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {
|
||||
// [BridgedContentView viewDidMoveToSuperview];
|
||||
auto original = reinterpret_cast<decltype(&ViewDidMoveToSuperview)>(
|
||||
original_view_did_move_to_superview);
|
||||
return original(self, _cmd);
|
||||
if (original)
|
||||
original(self, _cmd);
|
||||
return;
|
||||
}
|
||||
[self setFrame:[[self superview] bounds]];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user