Only set always-show-scrollbars in constructor on Mac.

Fixes: lp:1753592
* https://bugs.launchpad.net/kicad/+bug/1753592
This commit is contained in:
Jeff Young 2018-03-06 20:30:15 +00:00
parent 49486b83b0
commit 2b34426c36
1 changed files with 7 additions and 1 deletions

View File

@ -97,9 +97,15 @@ END_EVENT_TABLE()
/* EDA_DRAW_PANEL base functions (EDA_DRAW_PANEL is the main panel)*/
/***********************************************************************/
#ifdef __WXMAC__
const int drawPanelStyle = wxBORDER | wxHSCROLL | wxVSCROLL | wxALWAYS_SHOW_SB;
#else
const int drawPanelStyle = wxBORDER | wxHSCROLL | wxVSCROLL;
#endif
EDA_DRAW_PANEL::EDA_DRAW_PANEL( EDA_DRAW_FRAME* parent, int id,
const wxPoint& pos, const wxSize& size ) :
wxScrolledWindow( parent, id, pos, size, wxBORDER | wxHSCROLL | wxVSCROLL | wxALWAYS_SHOW_SB )
wxScrolledWindow( parent, id, pos, size, drawPanelStyle )
{
wxASSERT( parent );