Repairing box sizing when approaching boundary.