WP-2280: fix overflow hidden for print.