

def calcBoxFractions(self):
    (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/original