3D viewer zoom to fit button does not fill the screen fully
Description
Current behavior: the 3D viewer zoom to fit button does not fill the screen fully Expected behavior: the 3D viewer should zoom to the complete window when the zoom to fit button is pressed.
Steps to reproduce
- Have a board open in pcbnew
- press alt-3
Now the 3D viewer opens, with the board in the center, with about 1/3 of the height, and 1/3 of the width used.
- Use the mouse wheel to zoom in, so the board takes up (almost the complete window)
- press the zoom to fit button. Now the 3d viewer zooms out, to the screenshot of step 2.
KiCad Version
Application: 3D Viewer
Version: (5.99.0-6428-g6cbe2131a), release build
Libraries:
wxWidgets 3.0.5
libcurl/7.73.0 OpenSSL/1.1.1h zlib/1.2.11 zstd/1.4.5 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
Platform: Linux 5.8.14-arch1-1 x86_64, 64 bit, Little endian, wxGTK, , tty
Build Info:
Date: Oct 20 2020 21:06:38
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.72.0
OCC: 7.4.0
Curl: 7.73.0
ngspice: 32
Compiler: GCC 10.2.0 with C++ ABI 1014
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCC=ON
KICAD_SPICE=ON