Improve log message margin calculation when drawing right side branch label