Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if element overflows

function isOverflown(element) {
  return element.scrollHeight > element.clientHeight || element.scrollWidth > element.clientWidth;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #element #overflows
ADD COMMENT
Topic
Name
5+9 =