Padding menu item added and action

Added menu item to toggle automatic padding of segmented boxes (as requested from Ben). At the moment it is a menu toggle (deactivated by default), but it could be implemented as a setting in the settingsdialog with adjustable margin.
This is reverting changes I've made. Could you make sure you merge (or re-base, as you wish) the latest master branch?