Bug 178604 when I add new columns to a tree in foo.xul, they appear to the far left (instead of the far right) for existing profiles

patch by neil@parkwaycc.co.uk r=varga sr=sspitzer
This commit is contained in:
timeless%mozdev.org 2002-11-13 14:10:28 +00:00
Родитель b1a5c0e0db
Коммит 1c0c1f5304
2 изменённых файлов: 3 добавлений и 5 удалений

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

@ -125,11 +125,8 @@
col = col.boxObject.nextSibling;
}
var i;
// if there is no ordinal, come up with a big number, so that
// the column shows up on the far right
// see bug #178604
for (i = 0; i < cols.length; ++i)
cols[i].setAttribute("ordinal", cols[i].getAttribute('ordinal') ? ((i*2)+1) : (((cols.length + i + 1) * 2) + 1));
cols[i].setAttribute("ordinal", (i*2)+1);
// update the ordinal positions of splitters to even numbers, so that
// they are in between columns

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

@ -476,6 +476,7 @@ treecols {
treecol {
-moz-binding: url("chrome://global/content/bindings/tree.xml#treecol");
-moz-box-ordinal-group: 2147483646;
}
treecol.treecol-image {
@ -808,4 +809,4 @@ wizardpage {
.wizard-buttons {
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons");
}
}