compensated for padding and adjusted width accordingly