code: def _fixSize(self):
          
          self.height = 0
          for o in self.options:
              text = o['label']
              font = o['font']
              ren = font.render(text, 1, (0, 0, 0))
              if ren.get_width() > self.width:
                  self.width = ren.get_width()
              self.height += font.get_height()
docs: Fix the menu size. Commonly called when the font is changed