This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isItScrollableWithoutVisibleScrollbars = function(el) { | |
if (el === null) { | |
return false; | |
} | |
var isScrollable = false; | |
var hasScrollbars = false; | |
// first, lets find out if it has scrollable content | |
isScrollable = el.scrollHeight > el.offsetHeight ? true : false; | |
// if it's scrollable, let's see if it likely has scrollbars | |
if (isScrollable) { |