panel: Fix location if window resizes