Fix resize of static panels