Use m_dummyNSView if necessary to get the superview frame for DoMoveWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -205,7 +205,8 @@ void wxWindowCocoa::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
{
|
{
|
||||||
wxLogDebug("wxWindow=%p::DoMoveWindow(%d,%d,%d,%d)",this,x,y,width,height);
|
wxLogDebug("wxWindow=%p::DoMoveWindow(%d,%d,%d,%d)",this,x,y,width,height);
|
||||||
|
|
||||||
NSView *superview = [m_cocoaNSView superview];
|
NSView *nsview = m_dummyNSView?m_dummyNSView:m_cocoaNSView;
|
||||||
|
NSView *superview = [nsview superview];
|
||||||
wxCHECK_RET(superview,"NSView does not have a superview");
|
wxCHECK_RET(superview,"NSView does not have a superview");
|
||||||
NSRect parentRect = [superview frame];
|
NSRect parentRect = [superview frame];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user