fx-compat: Scaffold: Fix "undefined" attributes
This commit is contained in:
parent
db3aa5248c
commit
14f79018ad
1 changed files with 3 additions and 3 deletions
|
@ -1630,8 +1630,8 @@ var Scaffold = new function () {
|
||||||
function wrapWithHBox(elem, { flex = undefined, width = undefined } = {}) {
|
function wrapWithHBox(elem, { flex = undefined, width = undefined } = {}) {
|
||||||
let hbox = document.createXULElement('hbox');
|
let hbox = document.createXULElement('hbox');
|
||||||
hbox.append(elem);
|
hbox.append(elem);
|
||||||
hbox.setAttribute('flex', flex);
|
if (flex !== undefined) hbox.setAttribute('flex', flex);
|
||||||
hbox.setAttribute('width', width);
|
if (width !== undefined) hbox.setAttribute('width', width);
|
||||||
return hbox;
|
return hbox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1685,7 +1685,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;
|
||||||
hbox.appendChild(wrapWithHBox(defer));
|
hbox.appendChild(wrapWithHBox(defer, { width: 30 }));
|
||||||
|
|
||||||
item.appendChild(hbox);
|
item.appendChild(hbox);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue