From c22469c6b7a921fdf7f49b6a0e0be265a01e34a1 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 18 Aug 2003 19:21:32 +0000 Subject: [PATCH] SetInitialFrameRect: use frameRect.size.height to calculate frameRect.origin.y Fixes bug where size.y!=frameRect.size.height (e.g. it is -1) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/window.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index 0aa235830f..1ef455d810 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -522,7 +522,7 @@ void wxWindowCocoa::SetInitialFrameRect(const wxPoint& pos, const wxSize& size) if(size.y!=-1) frameRect.size.height = size.y; frameRect.origin.x = pos.x; - frameRect.origin.y = parentRect.size.height-(pos.y+size.y); + frameRect.origin.y = parentRect.size.height-(pos.y+frameRect.size.height); [nsview setFrame: frameRect]; } -- 2.45.2