Re: Getting the backdrag attribute to work for autocomplete-richlistbox panels
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
Am Dienstag, 20. August 2013 14:17:13 UTC+2 schrieb Neil Deakin: > On 2013-08-19 11:56 PM, [email protected] wrote: > > > Not sure why this wouldn't just work by default, but is there any Xul specific way to get backdrag working for panels that are not set to "arrow"? Other than wrapping it all into a titlebar element (which is pretty wonky), that is? > > > > > > > Backdrag already works on all panels. For example: > > > > <button label="Open" oncommand="this.nextSibling.openPopup();"/> > > > > <panel backdrag="true"> > > <label value="Cats"/> > > <button label="Dogs"/> > > </panel> > > > > > > You may have put something in the panel that isn't a background, such as > > the button in the example above. You can only drag on the background > > area of the panel. Hi there, Neil. I just tried your code. It most definitely does not work for me. Here's a quick test I just did: [CODE] <panel id="thepanel" backdrag="true"> <label value="Cats"/> <button label="Dogs"/> </panel> [/CODE] That's the event code I used to initialize the panel: [CODE] <keyset> <key id="thepanel" modifiers="control" key="p" oncommand="getElementById('thepanel').openPopup()"/> </keyset> [/CODE] And finally, here's the CSS: [CODE] #thepanel { border: 10px solid black; border-radius: 15px; background-color: black; opacity: 0.8; -moz-appearance: none } [/CODE]