Fix for wxWidgets 2.9.5
This commit is contained in:
parent
6ee32b9912
commit
9b52e9dd89
|
@ -85,10 +85,17 @@ END_EVENT_TABLE()
|
|||
|
||||
EDA_DRAW_PANEL::EDA_DRAW_PANEL( EDA_DRAW_FRAME* parent, int id,
|
||||
const wxPoint& pos, const wxSize& size ) :
|
||||
#if wxCHECK_VERSION( 2, 9, 5 )
|
||||
wxScrolledWindow( parent, id, pos, size, wxBORDER | wxHSCROLL | wxVSCROLL )
|
||||
#else
|
||||
wxScrolledWindow( parent, id, pos, size, wxBORDER | wxHSCROLL | wxVSCROLL | wxALWAYS_SHOW_SB )
|
||||
#endif
|
||||
{
|
||||
wxASSERT( parent );
|
||||
|
||||
#if wxCHECK_VERSION( 2, 9, 5 )
|
||||
ShowScrollbars( wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS );
|
||||
#endif
|
||||
m_scrollIncrementX = std::min( size.x / 8, 10 );
|
||||
m_scrollIncrementY = std::min( size.y / 8, 10 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue