Here is html code:
<div id="image-div">
<img id="image" src="" />
</div>
And js code:
# on dialog open
$.ajax({
url: "/ajax/img",
success: function(data){
$("#image").prop("src", data);
}
});
So, at the beginning the height of #image-div
= 0 and it changes only after real image loaded from server (after success ajax request). How to get new height of that div?
Thanks!