2014-08-07 22:18:44 +02:00
|
|
|
jQuery.fn.hasScrollBar = function() {
|
2014-08-08 17:59:31 +02:00
|
|
|
if (!$.contains(document, this.get(0))) {
|
2014-08-07 22:18:44 +02:00
|
|
|
return false;
|
|
|
|
}
|
2014-08-08 17:59:31 +02:00
|
|
|
if(this.parent().height() < this.get(0).scrollHeight) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
2014-08-07 22:18:44 +02:00
|
|
|
};
|
2014-08-07 21:27:42 +02:00
|
|
|
|