Prevent dismiss button from overflowing