Resetting control panel height on collapse - Fixes #227

This takes care of changes that could happen to the control panel height
dynamically. Would not handle the case where the control panel is changed
while collapsed, not sure how that could be taken care of.