Is there any way to set a jQuery event when some (any one) element changes its own height?
I really can’t find out how I can fire thi.s
Like:
$('body *').onHeightChange(function(){
//do somenthing
});
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Whenever you do something that changes the height of the element, trigger an event.
Now you can bind to that:
You could even monkeypatch a lot of the jQuery methods that can change the height and have them test the height before and after using the method and trigger the event accordingly. Below is an untested example