Nightly PCBNEW :  view menu, other problems remain (lp:#1832049)

[Original report](https://bugs.launchpad.net/bugs/1832049) created by **Michele Giorato (mr-miky64)**
```
The main problems were solved with the patches of the past few days but
traces of the problem remained in the sub menus.

At the first attempt to open the submenu, a horizontal line appears as if
for some reason wxgtk had failed to calculate the height of the sub menu to
be shown, retrying the selection immediately the sub menu appears.
After some time and repeating the operation the submenu reappears again as
a horizontal line.
I tried the other menus and only the View submenus have this drawback.

[michele@fx-8350-fc29 ~]$ pcbnew
23:06:10: Debug: Adding duplicate image handler for 'PNG file'
23:06:10: Debug: Adding duplicate image handler for 'JPEG file'
23:06:10: Debug: Adding duplicate image handler for 'TIFF file'
23:06:10: Debug: Adding duplicate image handler for 'GIF file'
23:06:10: Debug: Adding duplicate image handler for 'PNM file'
23:06:10: Debug: Adding duplicate image handler for 'PCX file'
23:06:10: Debug: Adding duplicate image handler for 'IFF file'
23:06:10: Debug: Adding duplicate image handler for 'Windows icon file'
23:06:10: Debug: Adding duplicate image handler for 'Windows cursor file'
23:06:10: Debug: Adding duplicate image handler for 'Windows animated
cursor file'
23:06:10: Debug: Adding duplicate image handler for 'TGA file'
23:06:10: Debug: Adding duplicate image handler for 'XPM file'
23:06:17: Debug: Loading project
'/home/michele/Documenti/pcb/kicad/DGRIO003/DGRIO003.pro' settings.

(pcbnew:8509): Gtk-CRITICAL **: 23:06:45.953:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:45.953:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:45.953:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:45.953:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:45.953:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:45.953:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:45.953:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:48.028:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:48.028:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed

(pcbnew:8509): Gtk-CRITICAL **: 23:06:48.028:
gtk_widget_get_preferred_height_for_width: assertion 'width >= 0' failed


Application: Pcbnew
Version: 6.0.0-unknown-r16013-f1f26a91, debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1c zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0
libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.8.7/openssl/zlib nghttp2/1.38.0
Platform: Linux 5.1.6-300.fc30.x86_64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.64.0
    Compiler: GCC 9.1.1 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    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_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON
```
Original tags: pcbnew ui

Story points: 6.0