Bug 594433 - "Ensure the matched tab isn't over the search box in the Panorama UI" [r=dolske f=ian a=blocking]

This commit is contained in:
Sean Dunn 2010-10-12 19:20:00 -04:00
Родитель 4ba74ad20c
Коммит e8062962f9
6 изменённых файлов: 42 добавлений и 14 удалений

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

@ -324,7 +324,8 @@ SearchEventHandlerClass.prototype = {
init: function () {
var self = this;
iQ("#searchbox")[0].focus();
iQ("#search").hide().click(function(event) {
iQ("#search").hide();
iQ("#searchshade").hide().click(function(event) {
if ( event.target.id != "searchbox")
hideSearch();
});
@ -462,6 +463,7 @@ var TabHandlers = {
_hideHandler: function(event){
iQ("#search").fadeOut();
iQ("#searchshade").fadeOut();
TabHandlers._mouseDownLocation = {x:event.clientX, y:event.clientY};
},
@ -475,6 +477,7 @@ var TabHandlers = {
return;
}
iQ("#searchshade").show();
iQ("#search").show();
iQ("#searchbox")[0].focus();
// Marshal the search.
@ -490,6 +493,7 @@ function createSearchTabMacher() {
function hideSearch(event){
iQ("#searchbox").val("");
iQ("#searchshade").hide();
iQ("#search").hide();
iQ("#searchbutton").css({ opacity:.8 });
@ -528,10 +532,12 @@ function performSearch() {
function ensureSearchShown(event){
var $search = iQ("#search");
var $searchShade = iQ("#searchshade");
var $searchbox = iQ("#searchbox");
iQ("#searchbutton").css({ opacity: 1 });
if (!isSearchEnabled()) {
$searchShade.show();
$search.show();
var mainWindow = gWindow.document.getElementById("main-window");
mainWindow.setAttribute("activetitlebarcolor", "#717171");
@ -544,7 +550,6 @@ function ensureSearchShown(event){
setTimeout(function focusSearch() {
$searchbox[0].focus();
$searchbox[0].val = '0';
$searchbox.css({"z-index":"1015"});
if (event != null)
$searchbox.val(String.fromCharCode(event.charCode));
@ -563,5 +568,4 @@ var SearchEventHandler = new SearchEventHandlerClass();
// Features to add:
// (1) Make sure this looks good on Windows. Bug 594429
// (2) Make sure that we don't put the matched tab over the search box. Bug 594433
// (3) Group all of the highlighted tabs into a group? Bug 594434
// (2) Group all of the highlighted tabs into a group? Bug 594434

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

@ -199,11 +199,19 @@ body {
/* Search
----------------------------------*/
#searchshade{
position: absolute;
top: 0px;
left: 0px;
z-index: 1000;
}
#search{
position: absolute;
top: 0px;
left: 0px;
z-index: 1000;
pointer-events: none;
z-index: 1050;
}
html[dir=rtl] #search {
@ -215,7 +223,6 @@ html[dir=rtl] #search {
position: absolute;
right: 20px;
top: 20px;
z-index: 1050;
}
html[dir=rtl] #searchbox {

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

@ -10,13 +10,15 @@
<body transparent="true">
<div id="content">
<div id="bg">
</div>
<input id="exit-button" type="image" alt="" groups="0" />
<div id="actions">
<input id="searchbutton" type="button"/>
</div>
<div id="bg" />
</div>
</div>
<div id="searchshade"></div>
<div id="search">
<input id="searchbox" type="text"/>
<div id="otherresults">

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

@ -542,10 +542,15 @@ html[dir=rtl] #exit-button {
/* Search
----------------------------------*/
#search{
#searchshade{
background-color: rgba(0,0,0,.42);
width: 100%;
height: 100%;
height: 100%;
}
#search{
width: 100%;
height: 100%;
}
#searchbox{

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

@ -534,12 +534,17 @@ html[dir=rtl] #exit-button {
/* Search
----------------------------------*/
#search {
#searchshade{
background-color: rgba(0,0,0,.42);
width: 100%;
height: 100%;
}
#search{
width: 100%;
height: 100%;
}
#searchbox {
width: 270px;
height: 30px;

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

@ -561,10 +561,15 @@ html[dir=rtl] #exit-button {
/* Search
----------------------------------*/
#search{
#searchshade{
background-color: rgba(0,0,0,.42);
width: 100%;
height: 100%;
height: 100%;
}
#search{
width: 100%;
height: 100%;
}
#searchbox{