pad: add margin setter and getter
Merge pull request #570 from ndawe/master

pad: add margin setter and getter