(issue #3880) use overflow instead of padding