Fix issue #2 with panel resizing after collapsing with double-click

Hi! 

I went ahead and tried to fix the issue I reported. 

I think the behavior of restoring the original panel size with a second double-click would help.

Hope this helps!