IDEX-278: fix closing not active part and resizing the editor tabs panel.