mac: Always use GetSize for frameless window
This commit is contained in:
parent
3ea878941b
commit
891d107a51
1 changed files with 3 additions and 0 deletions
|
@ -512,6 +512,9 @@ void NativeWindowMac::SetContentSize(const gfx::Size& size) {
|
|||
}
|
||||
|
||||
gfx::Size NativeWindowMac::GetContentSize() {
|
||||
if (!has_frame_)
|
||||
return GetSize();
|
||||
|
||||
NSRect bounds = [[window_ contentView] bounds];
|
||||
return gfx::Size(bounds.size.width, bounds.size.height);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue