Limit node position to canvas borders.
Add some spacing on the top and on the right side to help avoiding node
labels being out of the canves borders.