1if ($("#myoverflowingelement").prop('scrollWidth') > $("#myoverflowingelement").width() ) {
2 //this element is overflowing on the x axis
3}
4
5if ($("#myoverflowingelement").prop('scrollHeight') > $("#myoverflowingelement").height() ) {
6 //this element is overflowing on the y axis
7}