As suggested in this answer: https://superuser.com/a/294715/222260
I tried a script to hide the panel:
var panel = panelById(panelIds)
panel.hiding = 'autohide';
But this does not hide the panel.
As a workaround I'm using this:
panel.height = 0;
*** This bug has been marked as a duplicate of bug 158556 ***