I am developing an add on for Firefox on the Addon SDK (v.1.11).
My addon uses a toolbar button to display a XUL panel. This panel contains buttons that dynamically (using jQuery's slideToggle(500)) expand / collapse divs, modifying the overall dimensions of the panel.
Problem
The resizing is done smoothly, and the containing HTML elements are resized automatically since their height/width is set to 'auto'. However, the panel itself does not take height/width 'auto' values, only integers. This forces me to manually call a function to resize the panel when a collapse/expand motion has finished. This creates a very unpleasant effect. Is there a way to allow the panel to resize to its content automatically?