Fix menu not positioned correctly when panel button is moved.