Rajiv.ptbb Posted January 13, 2017 Share Posted January 13, 2017 I'm using "screen.availHeight" in document.onload() method to set height of panel in my web application that uses bootstrap and JQuery as well.I have noticed that in google chrome browser, screen.availHeight is returning different values at specific intervals? Did anyone come across same issue here? Is there any fix available? I also noticed this problem is with chrome browser only. Link to comment Share on other sites More sharing options...
Ingolme Posted January 13, 2017 Share Posted January 13, 2017 There isn't a document.onload method, are you using window.onload? What do you mean by "specific intervals"? Do you have a script running periodically checking the value of screen.availaHeight? screen.availaHeight is not really that useful because the screen object gives information about the user's screen instead of the browser window. You can use window.innerHeight to get the size of the window. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now