added check to disabled floating if content height is less than sidebar height