Expansion of a superbubble in a uniform magnetic field