Fix bug which causes a box that is larger than the
container to be hidden.