bugfixing
This commit is contained in:
parent
9608b3156b
commit
619dbc5a42
4 changed files with 26 additions and 26 deletions
|
@ -9,16 +9,17 @@ class Form extends UI {
|
|||
this._linesById = Object.create(null);
|
||||
}
|
||||
addLine(id, label, editor) {
|
||||
let line = document.createElement("div");
|
||||
let labelCell = document.createElement("div");
|
||||
let editorCell = document.createElement("div");
|
||||
let line = document.createElement("table");
|
||||
let row = document.createElement("tr");
|
||||
let labelCell = document.createElement("td");
|
||||
let editorCell = document.createElement("td");
|
||||
|
||||
labelCell.innerText = label;
|
||||
editorCell.appendChild(editor.element);
|
||||
editor.element.style.float = "right";
|
||||
|
||||
line.appendChild(labelCell);
|
||||
line.appendChild(editorCell);
|
||||
row.appendChild(labelCell);
|
||||
row.appendChild(editorCell);
|
||||
line.appendChild(row);
|
||||
|
||||
let obj = {
|
||||
id: id,
|
||||
|
|
|
@ -66,7 +66,7 @@ class SwitchBox extends UI {
|
|||
|
||||
this._iWidth = dw;
|
||||
this._iHeight = dh;
|
||||
let circleDiameter = Math.round(dh * 0.75);
|
||||
let circleDiameter = Math.round(dh * 0.70);
|
||||
|
||||
this._input.style.width = dw + "px";
|
||||
this._input.style.height = dh + "px";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue