Enhancement 1377: Fixed issue with simple box margins