Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting viewport height using ExtJS-4X or javascript

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!!

like image 319
azhar_salati Avatar asked Dec 12 '25 13:12

azhar_salati


1 Answers

Using window.innerHeight solved my problem and also the ExtJs way of finding the view port height is as follows -

Ext.getBody().getViewSize().height
like image 86
azhar_salati Avatar answered Dec 15 '25 18:12

azhar_salati



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!