On May 21, 8:29 pm, [EMAIL PROTECTED] wrote: > I am trying to get the viewport coordinates or the client rect without > using the Mozilla Internal API from Firefox 2. I am doing this to > determine if an element is visible within a scrolled view, or outside > of the scrolled view. I basically want to stay away from the internal > API so I do not have any dependencies on the version of Firefox, > especially when Firefox 3 comes out. > > This basically has eliminated my ability to use nsIFrame, > nsIPresShell, nsIPresContent, nsIView, or nsIWidget. Does anyone have > any suggestions?
I'd just use proper QI checks of the interface i choose and set proper min/max versions for the extension and then plan to make a new version that tries multiple QIs when 3 is released. COM is designed so that you can deal with this sort of problem. - And certainly the extension manager is supposed to deal w/ it. _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
