Rewrite get height

I decided to rewrite the way we get the different heights from scratch.
I use a function now that we pass a variable into and check that
variable for a specific string and then return a height based on that.
Keeps the rest of our code cleaner.

So the issue was if there were items in the list and the page was
resized the clear tab would come up and over because we were using the
wrong height. It occurred to me that #container was 100% height so it
would be the window height at its normal size. So my solution compares
two variables, window height - search area height and padding vs
container height - search area height and padding and sets the clear tab
to this new height when needed.