def preferredSize(self, rowLimit, colLimit):
    return (min(rowLimit, 1), min(colLimit, abs(self.width)))
def preferredSize(self, rowLimit, colLimit):
    return (min(rowLimit, 1), min(colLimit, abs(self.width)))