Using a buttonwrapper span around buttons inside panels (to make them look like all other XWiki buttons) shifts the button to the right.