Fix resizing after double-click to collapse panel

After double-clicking to collapse the test panel, it wouldn't let itself drag to
resize. This commit fixes this issue.
Restore original panel size after double-clicking

After double-clicking, the test panel wouldn't allow itself to be resized.
This commit allows the user to restore the original panel size with a second
double-click.