Answers for "check if element overflows"

0

check if element overflows

function isOverflown(element) {
  return element.scrollHeight > element.clientHeight || element.scrollWidth > element.clientWidth;
}
Posted by: Guest on June-23-2021

Browse Popular Code Answers by Language