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
View SilverStripe.code-snippets
"DataObject": {
"scope": "html",
"prefix": "SSDataObject",
"body": [
"namespace ${1:Namespace};",
"use SilverStripe\\ORM\\DataObject;",
davejtoews / findOverflowingElements.js
Created Aug 15, 2019
Detect elements which are overflowing your window and causing a side scroll.
View findOverflowingElements.js
[]'*'), function(element) {
if (element.offsetLeft + element.offsetWidth > window.innerWidth) {
You can’t perform that action at this time.