Hide the scrollbars on the symbol preview canvas

This canvas supports mouse interaction, and navigating using the
scrollbars is very difficult (it causes large jumps). Also, having
the scrollbars causes the background to bleed through around them,
making them appear floating in the canvas.

Fixes https://gitlab.com/kicad/code/kicad/issues/4997
This commit is contained in:
Ian McInerney 2020-08-09 23:11:39 +01:00
parent 589951eaea
commit b3525bc642
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ SCH_PREVIEW_PANEL::SCH_PREVIEW_PANEL( wxWindow* aParentWindow, wxWindowID aWindo
m_view->SetScaleLimits( 20000.0, 0.002 );
m_view->SetMirror( false, false );
ShowScrollbars( wxSHOW_SB_NEVER, wxSHOW_SB_NEVER );
EnableScrolling( false, false );
setDefaultLayerOrder();
setDefaultLayerDeps();