Fix a bug with clipping against bottom edge.