chatzilla only, patch=_basic@yahoo.com, r=me, bug 102186

remove spacer box from between tabs to avoid strict warnings.


git-svn-id: svn://10.0.0.236/trunk@111316 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rginda%netscape.com
2002-01-03 21:42:34 +00:00
parent 568601718b
commit f1dce49889
2 changed files with 3 additions and 12 deletions

View File

@@ -1836,13 +1836,7 @@ function getTabForObject (source, create)
tb.setAttribute ("id", id);
tb.setAttribute ("state", "normal");
var spacer = document.createElement ("box");
spacer.setAttribute ("id", id + "-spacer");
spacer.setAttribute ("class", "tabs-bottom view-button-spacer");
spacer.setAttribute ("index", client.viewsArray.length);
views.appendChild (spacer);
client.viewsArray.push ({source: source, tb: tb, spacer: spacer});
client.viewsArray.push ({source: source, tb: tb});
tb.setAttribute ("viewKey", client.viewsArray.length - 1);
if (matches > 1)
tb.setAttribute("label", name + "<" + matches + ">");
@@ -1958,13 +1952,10 @@ function deleteTab (tb)
for (i = key + 1; i < client.viewsArray.length; i++)
{
client.viewsArray[i].tb.setAttribute ("viewKey", i - 1);
client.viewsArray[i].spacer.setAttribute ("index", i - 1);
}
var spacer = client.viewsArray[key].spacer;
arrayRemoveAt(client.viewsArray, key);
var tbinner = document.getElementById("views-tbar-inner");
tbinner.removeChild(tb);
tbinner.removeChild(spacer);
}
}
else

View File

@@ -76,8 +76,8 @@ window {
/* spaces after the 4th and 8th tab, so you can line them up with your Fn
* keys */
.view-button-spacer[index="4"],
.view-button-spacer[index="8"] {
.view-button[viewKey="4"],
.view-button[viewKey="8"] {
margin-left: 5px;
}