Add check for offset before subtracting space for scrollbar, affects #8