def METHOD_NAME(self, x, y, width, height):
    super().METHOD_NAME(x, y, width, height)
    # Setting the bounds changes the constraints, but that doesn't mean
    # the constraints have been fully applied. Schedule a refresh to be done
    # as soon as possible in the future
    self.native.performSelector(
        SEL("refreshContent"), withObject=None, afterDelay=0
    )