Bug 1177524 - Don't hide the subview until after the transition is done r=Gijs

This commit is contained in:
Tim Taubert 2015-06-30 06:01:16 +02:00
Родитель 1c14bfc287
Коммит 04da99cac5
3 изменённых файлов: 15 добавлений и 14 удалений

Просмотреть файл

@ -6,6 +6,10 @@
@namespace html url("http://www.w3.org/1999/xhtml");
@namespace svg url("http://www.w3.org/2000/svg");
:root {
--panelui-subview-transition-duration: 150ms;
}
#main-window:not([chromehidden~="toolbar"]) {
%ifdef XP_MACOSX
min-width: 335px;
@ -110,11 +114,12 @@ panelview {
}
.panel-mainview {
transition: transform 150ms;
transition: transform var(--panelui-subview-transition-duration);
}
panelview:not([mainview]):not([current]) {
display: none;
transition: visibility 0s linear var(--panelui-subview-transition-duration);
visibility: collapse;
}
tabbrowser {

Просмотреть файл

@ -369,12 +369,10 @@ const CustomizableWidgets = [
// Hardcode the addition of the "work offline" menuitem at the bottom:
itemsToDisplay.push({localName: "menuseparator", getAttribute: () => {}});
itemsToDisplay.push(doc.getElementById("goOfflineMenuitem"));
fillSubviewFromMenuItems(itemsToDisplay, doc.getElementById("PanelUI-developerItems"));
},
onViewHiding: function(aEvent) {
let doc = aEvent.target.ownerDocument;
clearSubview(doc.getElementById("PanelUI-developerItems"));
let developerItems = doc.getElementById("PanelUI-developerItems");
clearSubview(developerItems);
fillSubviewFromMenuItems(itemsToDisplay, developerItems);
}
}, {
id: "sidebar-button",
@ -399,11 +397,9 @@ const CustomizableWidgets = [
if (providerMenuSeps.length > 0)
win.SocialSidebar.populateProviderMenu(providerMenuSeps[0]);
fillSubviewFromMenuItems([...menu.children], doc.getElementById("PanelUI-sidebarItems"));
},
onViewHiding: function(aEvent) {
let doc = aEvent.target.ownerDocument;
clearSubview(doc.getElementById("PanelUI-sidebarItems"));
let sidebarItems = doc.getElementById("PanelUI-sidebarItems");
clearSubview(sidebarItems);
fillSubviewFromMenuItems([...menu.children], sidebarItems);
}
}, {
id: "social-share-button",

Просмотреть файл

@ -23,9 +23,9 @@
}
.panel-subviews[panelopen] {
transition: transform 150ms;
transition: transform var(--panelui-subview-transition-duration);
}
.panel-viewcontainer[panelopen]:-moz-any(:not([viewtype="main"]),[transitioning="true"]) {
transition: height 150ms;
transition: height var(--panelui-subview-transition-duration);
}