Study for "Browser" panel issue and "Animate fade-in"
For Firefox on Mac OS X, browser.preferences.animateFadeIn is enabled. When switching panels, fade in/out and change the height of the window.
This seems to be the reason why Configuration Mania "Browser" panel height is too small or large on Mac.
I found:
browser.preferences.animateFadeIncan be enabled and can work on non-Mac.- Attribute
animated="true"and internal flag_shouldAnimate=trueis set onprefwindowelement when the option is enabled. - If
_shouldAnimateis true and prefpane is changed, theprefpane'sflexattribute is removed. So we cannot useflexforprefpane!!
if (aPaneElement.hasAttribute("flex") && this._shouldAnimate &&
prefpanes.length > 1)
aPaneElement.removeAttribute("flex");
_selectPane() removes flex attribute so as to calculate size of contents.