There's no a problem with the author's current code, since the padding is already included in the node size, but it would be a problem after doing alignment more intelligently.