panel: Fix sizing, repaint on resize