html - Possible Chrome bug: Docking a div outside the body makes the scrollbar inaccessible -


i'm writing chrome extension involves appending iframe sibling of existing page's body, reducing height of body stay above iframe, , setting overflow of html , body tags "scroll". example here: http://output.jsbin.com/cetobu/1
creates 2 vertical scrollbars: 1 html tag (the longer one) , 1 body. however, scrolltop property of "body" reports value "html" scrollbar, , none of elements reflect "body" scrollbar. huge problem because extension needs able set scrolltop value of body, scrollbar can "html" one. how access "body" scrollbar?
(in firefox, html.scrolltop , body.scrolltop reflect correct scrollbars.)

alternatively, if knows different way insert element on existing page , have else move out of way, great. (i've tried wrapping whole content of body in new div , putting iframe in sibling, caused lot of different complications on different sites.)


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -