NXP-13205: fix container widget behaviour on 5.6 when hiding subwidgets