def get_min_height(self):
        '''Return the minimum height required for this element.

        If the height relies on some parent element's dimensions, then just
        return the intrinsic_height for the element.
        '''
        if self.height_spec.value is not None:
            return self.height_spec.value
        height = self.height
        if height is None:
            height = self.intrinsic_height()
        return height
dataset/ETHPy150Open ardekantur/pyglet/contrib/wydget/wydget/element.py/Element.get_min_height/original