I have a small problem with resizing a window using jQuery function . resize () . I would like to know which dimension is getting bigger / smaller - width or height. I need this because if I just put two conditions - if the width for 50px is bigger than the div, and if the height for 50px is bigger than the div,
// (pseudocode) if width = div.width + 50px width = something if height = div.height + 50px height = something
then it only works with one condition, and I can only resize width or height.
How can I find out which dimension is resizing, or both?
javascript jquery resize window
user1257255
source share