Skip to content

Instantly share code, notes, and snippets.

David Toews davejtoews

Block or report user

Report or block davejtoews

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davejtoews
davejtoews / findOverflowingElements.js
Created Aug 15, 2019
Detect elements which are overflowing your window and causing a side scroll.
View findOverflowingElements.js
[].forEach.call(document.querySelectorAll('*'), function(element) {
if (element.offsetLeft + element.offsetWidth > window.innerWidth) {
console.log(element);
}
});
You can’t perform that action at this time.