I want to get the height of the viewport using ExtJs or native javascript.
How can i get this height ? I am not using any extjs viewport container.
If its not possible using ExtJs then how can i find the exact height of the view port ?
Thanks!!
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.
How about
in ExtJS you can use
getViewSize( )Another plain JS approach is
This function will return any document height (cross-browser) and if the documents body height is less than the viewport height then it will return the viewport height instead. Cause I think your doc is empty at the time you check this should perfectly work for you.