I\'m trying to get the current browser viewport height, using
$(window).on(\'resize\',function() {
console.log(\"new height is: \"+$(window).height());
For those who still has problem after above solutions...
Please check the view ratio of browser onto your project.html..
The value of $(window).height() is not as same as 'real' pixels of client area when the view ratio adjusted! (and so others $(xx).width()...in this situation)
(The browser remembered my careless 110% ratio adjusted days ago...)