viewDidMoveToSuperview may not be implemented
This commit is contained in:
parent
5547df6073
commit
a2c3db666e
1 changed files with 3 additions and 1 deletions
|
@ -244,7 +244,9 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {
|
||||||
// [BridgedContentView viewDidMoveToSuperview];
|
// [BridgedContentView viewDidMoveToSuperview];
|
||||||
auto original = reinterpret_cast<decltype(&ViewDidMoveToSuperview)>(
|
auto original = reinterpret_cast<decltype(&ViewDidMoveToSuperview)>(
|
||||||
original_view_did_move_to_superview);
|
original_view_did_move_to_superview);
|
||||||
return original(self, _cmd);
|
if (original)
|
||||||
|
original(self, _cmd);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
[self setFrame:[[self superview] bounds]];
|
[self setFrame:[[self superview] bounds]];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue