On 14 May, 11:47, Mike Ratcliffe <[email protected]> wrote: > On 14 May, 01:57, Robert O'Callahan <[email protected]> wrote: > > > > > On 14/5/09 4:05 AM, John J. Barton wrote: > > > > Boris Zbarsky wrote: > > > .. > > >> You might want to look into the existing "need a way of showing some > > >> chrome UI over content" bug... I believe the short of it is that it > > >> can sort of be done if the chrome stuff is opaque. If it's not, it > > >> just won't work correctly no matter what you do with it, as things stand. > > > > So how about as-things-change-in-1.9.2? Or is there another way to > > > accomplish our goal of showing visual indicators of layout boxes in > > > content without inserting new content (and hence disturbing the content > > > we are trying to debug)? > > > > It seems like support for chrome-over-content would be a generic feature > > > of potential interest to many extension developers. > > > The autoscroll popup is probably the best way to do something like this > > right now. Basically it's a transparent/translucent XUL > > panel.http://mxr.mozilla.org/mozilla-central/search?string=autoscrollpopup > > > Rob > > Hi Rob > > I don't see any references to autoscrollpopup anywhere. Are you saying > that instead of: > > <popupset id="mainPopupSet"> > <panel id="test-panel" style="border:0 none;background- > color:transparent;-moz-window-shadow:none;" level="top" > noautohide="true"> > <html:canvas id="mycanvas"> > </html:canvas> > </panel> > > <script type="text/javascript"> > <![CDATA[ > function blah() > { > var el=document.getElementById('test-panel') > canvas = > document.getElementById("mycanvas"), > cg = canvas.getContext("2d"); > > cg.strokeStyle = "green"; > cg.strokeRect(20,20,50,50); > > canvas.width = document.width; > canvas.height = document.height; > el.openPopup(document, 'overlap', 0, 0, false, false); > } > ]]> > </script> > </popupset> > > I should be using: > <popupset id="mainPopupSet"> > <autoscrollpopup id="test-panel" style="border:0 > none;background- > color:transparent;-moz-window-shadow:none;" level="top" > noautohide="true"> > <html:canvas id="mycanvas"> > </html:canvas> > </autoscrollpopup> > > {script etc.} > </popupset> > > ?
The widget only needs to work with Firefox 3+ ... is there an advantage to using autoscrollpopup instead of using panel? _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

