If desired, add bottom padding to last selector

This is checking if the height of the position of the last selector plus the content below it is less than the window height. If it is, it adds the difference as padding to a desired elem.