Scaffold: Fix richlistbox misalignment
This commit is contained in:
parent
9d9d98b907
commit
1caeb1ef08
3 changed files with 5 additions and 3 deletions
|
@ -1754,10 +1754,11 @@ var Scaffold = new function () {
|
||||||
* populate tests pane and url options in browser pane
|
* populate tests pane and url options in browser pane
|
||||||
*/
|
*/
|
||||||
this.populateTests = function () {
|
this.populateTests = function () {
|
||||||
function wrapWithHBox(elem, { flex = undefined, width = undefined } = {}) {
|
function wrapWithHBox(elem, { flex, pack, width } = {}) {
|
||||||
let hbox = document.createXULElement('hbox');
|
let hbox = document.createXULElement('hbox');
|
||||||
hbox.append(elem);
|
hbox.append(elem);
|
||||||
if (flex !== undefined) hbox.setAttribute('flex', flex);
|
if (flex !== undefined) hbox.setAttribute('flex', flex);
|
||||||
|
if (pack !== undefined) hbox.setAttribute('pack', pack);
|
||||||
if (width !== undefined) hbox.style.width = width + 'px';
|
if (width !== undefined) hbox.style.width = width + 'px';
|
||||||
return hbox;
|
return hbox;
|
||||||
}
|
}
|
||||||
|
@ -1808,7 +1809,7 @@ var Scaffold = new function () {
|
||||||
let defer = document.createXULElement('checkbox');
|
let defer = document.createXULElement('checkbox');
|
||||||
defer.checked = test.defer;
|
defer.checked = test.defer;
|
||||||
defer.disabled = true;
|
defer.disabled = true;
|
||||||
item.appendChild(wrapWithHBox(defer, { width: 30 }));
|
item.appendChild(wrapWithHBox(defer, { pack: 'center', width: 75 }));
|
||||||
|
|
||||||
item.dataset.testString = testString;
|
item.dataset.testString = testString;
|
||||||
item.dataset.testType = test.type;
|
item.dataset.testType = test.type;
|
||||||
|
|
|
@ -481,7 +481,7 @@
|
||||||
<listheader>
|
<listheader>
|
||||||
<treecol label="&scaffold.testing.input.label;" flex="1"/>
|
<treecol label="&scaffold.testing.input.label;" flex="1"/>
|
||||||
<treecol label="&scaffold.testing.status.label;" width="150"/>
|
<treecol label="&scaffold.testing.status.label;" width="150"/>
|
||||||
<treecol label="&scaffold.testing.defer.label;"/>
|
<treecol label="&scaffold.testing.defer.label;" width="75"/>
|
||||||
</listheader>
|
</listheader>
|
||||||
<richlistbox
|
<richlistbox
|
||||||
id="testing-listbox"
|
id="testing-listbox"
|
||||||
|
|
|
@ -162,6 +162,7 @@ browser,
|
||||||
margin-block: 0;
|
margin-block: 0;
|
||||||
|
|
||||||
richlistitem {
|
richlistitem {
|
||||||
|
padding: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue