fix batch action / scope layout problem for other locales

Since CSS isn't yet advanced enough, we must resort to JS for this
layout to work with translations of different widths. :-/

This resolves #2888. Thanks to @philipgiuliani for pointing out the
problem.