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.
Ah sorry faulty merge. Fixed