How to get the bounds of a dome node properly even when browser is in different Zoom state
mads <[email protected]> Fri, 30 Sep 2011 06:11:02 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <c986b5de-3b3b-4d60-86e6-b77a00535e2f@i33g2000yqm.googlegroups.com> |
I wrote an extension using native Gecko SDK for firefox browser, where I was trying to get the bounds of the dom nodes. I tried in two ways. One by getting offset left, top, height and width and other way is through by calling the GetBounds() on the accessible node of that particular dom node. In both the cases I am getting the actual values where the browser in 100% zoomed. But when the browser is Zoomed In or Zoomed Out, still I am not getting the proportionally changed values. Instead of that I am getting the values assuming 100% zoomed. How to get the Zoomed values correspondingly changed dimensions of the control programmatically when the browser is Zoomed in or zoomed out. Appreciate your help. Thanks, Madhu Tadiparthi