bug fix in inline boxes bound computation, added padding and borders