We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/* --- description: Check if the first element is inside the second element. authors: - Jean-Nicolas Boulay (http://jean-nicolas.com) license: - MIT-style license requires: - core/1.4: '*' provides: - Element.inside ... */ Element.implement({ inside: function(el2){ var thisLeftX = this.offsetLeft; var thisLeftY = this.offsetTop; var thisRightX = (this.offsetWidth + this.offsetLeft); var thisRightY = (this.offsetTop + this.offsetHeight); var el2LeftX = el2.offsetLeft; var el2LeftY = el2.offsetTop; var el2RightX = (el2.offsetWidth + el2.offsetLeft); var el2RightY = (el2.offsetHeight + el2.offsetTop); return (((el2LeftY <= thisLeftY) && (thisLeftY <= el2RightY)) && ((el2LeftY <= thisRightY) && (thisRightY <= el2RightY)) && ((el2LeftX <= thisLeftX) && (thisLeftX <= el2RightX)) && ((el2LeftX <= thisRightX) && (thisRightX <= el2RightX))); } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: