Bug 803546 - Applying background theme causes Downloads button to jump around.

r=mconley
This commit is contained in:
Marco Bonardo 2012-11-06 23:11:11 +01:00
parent 3cc8cded99
commit bf0f88e75b
2 changed files with 5 additions and 1 deletions

View File

@ -156,6 +156,9 @@ const DownloadsButton = {
if (!placeholder) {
// The placeholder has been removed from the browser window.
indicator.collapsed = true;
// Move the indicator to a safe position on the toolbar, since otherwise
// it may break the merge of adjacent items, like back/forward + urlbar.
indicator.parentNode.appendChild(indicator);
return null;
}

View File

@ -29,7 +29,8 @@
ondrop="DownloadsIndicatorView.onDrop(event);"
ondragover="DownloadsIndicatorView.onDragOver(event);"
ondragenter="DownloadsIndicatorView.onDragOver(event);"
ondragleave="DownloadsIndicatorView.onDragLeave(event);">
ondragleave="DownloadsIndicatorView.onDragLeave(event);"
skipintoolbarset="true">
<!-- The panel's anchor area is smaller than the outer button, but must
always be visible and must not move or resize when the indicator
state changes, otherwise the panel could change its position or lose