macOSX: fixed GetMBarHeight( ) problem.

This commit is contained in:
charras 2010-01-15 13:02:04 +00:00
parent 5eddb1f467
commit b41e4e6947
2 changed files with 6 additions and 7 deletions

View File

@ -145,11 +145,10 @@ void WinEDA3D_DrawFrame::GetSettings()
config->Read( wxT( "BgColor_Blue" ),
&g_Parm_3D_Visu.m_BgColor.m_Blue, 0.0 );
}
#if defined( __WXMAC__ ) && !defined( __WXOSX_COCOA__ )
#if defined( __WXMAC__ )
// for macOSX, the window must be below system (macOSX) toolbar
if( m_FramePos.y < GetMBarHeight() )
m_FramePos.y = GetMBarHeight();
if( m_FramePos.y < 20 )
m_FramePos.y = 20;
#endif
}

View File

@ -106,10 +106,10 @@ void WinEDA_BasicFrame::LoadSettings()
}
// Ensure Window title bar is visible
#if defined( __WXMAC__ ) && !defined( __WXOSX_COCOA__ )
#if defined( __WXMAC__ )
// for macOSX, the window must be below system (macOSX) toolbar
Ypos_min = GetMBarHeight();
// Ypos_min = GetMBarHeight(); seems no more exist in ne API (subject to change)
Ypos_min = 20;
#else
Ypos_min = 0;
#endif