[Bug 552963] panel messed up after drag to other edge