From f47bd56d52fa4ba17323b693e51de2b8c8d5b76c Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Fri, 6 Mar 2015 01:42:33 +0100 Subject: [PATCH] Fixing content display on window resize. --- examples/common/entry/entry_osx.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/common/entry/entry_osx.mm b/examples/common/entry/entry_osx.mm index b95293ee2..356b6fa07 100644 --- a/examples/common/entry/entry_osx.mm +++ b/examples/common/entry/entry_osx.mm @@ -367,7 +367,8 @@ namespace entry { WindowHandle handle = { 0 }; NSWindow* window = m_window[handle.idx]; - NSRect rect = [window frame]; + NSRect originalFrame = [window frame]; + NSRect rect = [NSWindow contentRectForFrameRect: originalFrame styleMask: NSTitledWindowMask]; uint32_t width = uint32_t(rect.size.width); uint32_t height = uint32_t(rect.size.height); m_eventQueue.postSizeEvent(handle, width, height);