Androidのアドレスバーの高さの取り方
(window.outerHeight/window.devicePixelRatio) - window.innerHeight
でいけるらしい。
[追記] どうも、innerとouterの値が逆転する端末もあるみたい・・となると使えないかも、これ。(少なくともGalaxy S2で確認)
This is a tumblelog, kinda like a blog but with short-form, mixed-media posts with stuff I like. Scroll down a bit to start reading, or a bit more to read more about me.
(window.outerHeight/window.devicePixelRatio) - window.innerHeight
でいけるらしい。
[追記] どうも、innerとouterの値が逆転する端末もあるみたい・・となると使えないかも、これ。(少なくともGalaxy S2で確認)