Width and Height for Browser Window


Hey guys,

Setting the width and height properties for the browser windows is actually counting the border’s width too, is that intended? Because I need my width and height to be pixel perfect across all platforms, and I don’t know the border’s width for linux, mac, etc. (I assume they are all different). Is there a way to set the width and height to a certain dimension without taking the border’s width and title bar into affect?


You can calculate the scrollbar dimensions using window.outerHeight., window.innerHeight, window.innerWidth, and window.outerWidth.


Ha, I found it!

It was : useContentSize

I set it to true, and just fixed everything! My bad guys! Thanks for your post Mark ~