Allow a custom log handler
an inset of -1/+1 is actually a rounding error, force to 0 for more consistency
only compute the inset when shown