Only set always-show-scrollbars in constructor on Mac.
Fixes: lp:1753592 * https://bugs.launchpad.net/kicad/+bug/1753592
This commit is contained in:
parent
49486b83b0
commit
2b34426c36
|
@ -97,9 +97,15 @@ END_EVENT_TABLE()
|
||||||
/* EDA_DRAW_PANEL base functions (EDA_DRAW_PANEL is the main panel)*/
|
/* 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,
|
EDA_DRAW_PANEL::EDA_DRAW_PANEL( EDA_DRAW_FRAME* parent, int id,
|
||||||
const wxPoint& pos, const wxSize& size ) :
|
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 );
|
wxASSERT( parent );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue