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
This commit is contained in:
David Elliott 2003-08-18 19:21:32 +00:00
parent b915b80565
commit c22469c6b7

View File

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