code: def fix(self, with_margin=True):
          
          if not self.width:
              self.xmax = self.xmin + 1
          if not self.height:
              self.ymin /= 2
              self.ymax += self.ymin
          xmargin = self.margin * self.width
          self.xmin -= xmargin
          self.xmax += xmargin
          if with_margin:
              ymargin = self.margin * self.height
              self.ymin -= ymargin
              self.ymax += ymargin
docs: Correct box when no values and take margin in account