def CalculateShrinkToFit(self, dc):
        """
        How much do we have to shrink our rows by to fit onto the page?
        """
        block = ColumnHeaderBlock(self.lv, self.left, self.right, 1, self.allCellWidths)
        block.engine = self.engine
        rowWidth = block.CalculateWidth(dc)
        boundsWidth = RectUtils.Width(self.GetWorkBounds())

        if rowWidth > boundsWidth:
            return float(boundsWidth) / float(rowWidth)
        else:
            return 1

#----------------------------------------------------------------------------
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/lib/ObjectListView/ListCtrlPrinter.py/ListSliceBlock.CalculateShrinkToFit/original