Fix double-click panel resize