mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 899726 - Defect - during keyboard showing/hiding, sometimes hidden appbars show up. r=mbrubeck
--HG-- extra : rebase_source : 520ea7bbfb5667cb96d603ec876fd8bc9a9610ec
This commit is contained in:
parent
ea9c6bf9a5
commit
30997e38c2
@ -181,7 +181,9 @@ var ContextUI = {
|
||||
|
||||
// Dismiss the navbar if visible.
|
||||
dismissNavbar: function dismissNavbar() {
|
||||
Elements.navbar.dismiss();
|
||||
if (!StartUI.isVisible) {
|
||||
Elements.navbar.dismiss();
|
||||
}
|
||||
},
|
||||
|
||||
// Dismiss the tabstray if visible.
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<bindings xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<binding id="appbarBinding">
|
||||
<content>
|
||||
<binding id="appbarBinding">
|
||||
<content>
|
||||
<xul:toolbar anonid="toolbar"><children/></xul:toolbar>
|
||||
</content>
|
||||
|
||||
@ -29,13 +29,20 @@
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
|
||||
<method name="dismiss">
|
||||
<body>
|
||||
<![CDATA[
|
||||
if (!this.isShowing)
|
||||
return;
|
||||
|
||||
let self = this;
|
||||
this.setAttribute("hiding", "true");
|
||||
this.addEventListener("transitionend", function appbar_transitionend() {
|
||||
self.removeEventListener("transitionend", appbar_transitionend, false);
|
||||
self.removeAttribute("hiding");
|
||||
}, false);
|
||||
|
||||
this._fire("MozAppbarDismissing");
|
||||
this.removeAttribute("visible");
|
||||
]]>
|
||||
|
@ -116,15 +116,16 @@ var FindHelperUI = {
|
||||
// Shutdown selection related ui
|
||||
SelectionHelperUI.closeEditSession();
|
||||
|
||||
this.search(this._textbox.value);
|
||||
this._textbox.select();
|
||||
this._textbox.focus();
|
||||
this._open = true;
|
||||
|
||||
let findbar = this._container;
|
||||
setTimeout(() => {
|
||||
Elements.browsers.setAttribute("findbar", true);
|
||||
findbar.show();
|
||||
|
||||
this.search(this._textbox.value);
|
||||
this._textbox.select();
|
||||
this._textbox.focus();
|
||||
|
||||
this._open = true;
|
||||
}, 0);
|
||||
|
||||
// Prevent the view to scroll automatically while searching
|
||||
|
@ -444,10 +444,6 @@ documenttab[selected] .documenttab-selection {
|
||||
|
||||
/* Navigation bar ========================================================== */
|
||||
|
||||
#navbar[startpage] {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* Progress meter ---------------------------------------------------------- */
|
||||
|
||||
#progress-container {
|
||||
|
@ -679,6 +679,7 @@ arrowbox {
|
||||
}
|
||||
|
||||
/* App bars ----------------------------------------------------------------- */
|
||||
|
||||
appbar {
|
||||
display: block;
|
||||
position: fixed;
|
||||
@ -687,15 +688,12 @@ appbar {
|
||||
transform: translateY(100%);
|
||||
transition: transform @metro_animation_duration@ @metro_animation_easing@;
|
||||
font-size: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
appbar toolbar {
|
||||
-moz-appearance: none;
|
||||
-moz-box-align: center;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
min-height: @toolbar_height@;
|
||||
font-size: 1rem;
|
||||
appbar[hiding],
|
||||
appbar[visible] {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
appbar[visible] {
|
||||
@ -709,6 +707,16 @@ appbar[visible] {
|
||||
bottom @appbar_keyboard_slideup_duration@ @metro_animation_easing@;
|
||||
}
|
||||
|
||||
|
||||
appbar toolbar {
|
||||
-moz-appearance: none;
|
||||
-moz-box-align: center;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
min-height: @toolbar_height@;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
appbar toolbar toolbarbutton {
|
||||
border: 0;
|
||||
margin: 0 @toolbar_horizontal_spacing@;
|
||||
|
Loading…
Reference in New Issue
Block a user