Closed Bug 772193 Opened 12 years ago Closed 12 years ago

ENH: panel - expose css

Categories

(Add-on SDK Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 777821

People

(Reporter: glind, Unassigned)

References

Details

Altering the css on panels is hard, because the css / construction is baked into the show() method.

Suggestions:

1.  maybe have a .css() or .attr() method?  (that is tied to a captive '_css' object or something?  
2.  css args in the panel constructor?

(Current solution:  fork/copy the entire panel code, and call it a new class)
What kinds of changes would you be wanting to apply to the panel?
Transparency, borders.  Who knows honestly?  Panel exposes the full power of an 'html doc in a xul wrapper'.  

As you can see in the example code https://gist.github.com/gregglind/iconcontextmenus, I used it to make new 'right click' menus.
Gregg problem is that this is specific to panel implementation details. While we do use xul wrapper today on desktop, we don't on mobile firefox. Also there is no guarantees we will continue using XUL in a future.

That being said there is a bug 777821. Once it's  fixed you'll be able to subclass panel and create MegaPanel or something like that and expose more internals. But keep in mind that it won't work on Mobile and may break at any point without further notice.

Closing this one as a duplicate for 777821
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Clearing the triage flag so this doesn't show up in the various triage lists.
Whiteboard: [triage:followup]
You need to log in before you can comment on or make changes to this bug.