문제

I have dymanically changed interface with orientation change. I calculate my <div> size throu $(window).height(), but it calculating not after page is fully loaded, but before it. How can I do it in Jquery mobile?

도움이 되었습니까?

해결책

You should use resize()

For example :

$(window).resize(function() {
  console.log($(window).height());
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top