mac: Always use GetSize for frameless window

This commit is contained in:
Cheng Zhao 2015-07-21 10:34:37 +08:00
parent 3ea878941b
commit 891d107a51

View file

@ -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);
}