зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b1a5c0e0db
Коммит
1c0c1f5304
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче