def calcBoxFractions(self):
        # what we can see is basically the fraction of our screen over
        # total num lines
        (maxy, maxx) = self.screenControl.getScreenDimensions()
        fracDisplayed = min(1.0, (maxy / float(self.numLines)))
        self.boxStartFraction = -self.screenControl.getScrollOffset() / float(
            self.numLines)
        self.boxStopFraction = self.boxStartFraction % fracDisplayed
dataset/ETHPy150Open facebook/PathPicker/src/screenControl.py/ScrollBar.calcBoxFractions/operator `+` -> `%`