use native window resize animation API for Mac OS X preferences. b=355177 r=sspitzer r=enn
git-svn-id: svn://10.0.0.236/trunk@224326 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
18af18a191
commit
04b8ac814d
@ -744,9 +744,20 @@
|
||||
// Don't let the new pane content flex to the current window
|
||||
// height if we're animating
|
||||
aPaneElement.removeAttribute("flex");
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
try {
|
||||
window.animatedResize = window.RESIZE_ANIMATION_SLIDE;
|
||||
// New height is the new pane's size plus the size of the pane selection bar
|
||||
var newHeight = aPaneElement.contentHeight + (window.innerHeight - oldPane.contentHeight);
|
||||
window.innerHeight = newHeight;
|
||||
this._currentHeight = newHeight;
|
||||
window.animatedResize = window.RESIZE_ANIMATION_OFF;
|
||||
}
|
||||
catch (e) { }
|
||||
#else
|
||||
aPaneElement.style.opacity = 0.0;
|
||||
this.animate(oldPane, aPaneElement);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user