bugfixing
This commit is contained in:
parent
f26cdc128b
commit
ccc39cac9a
4 changed files with 10 additions and 6 deletions
|
@ -41,7 +41,7 @@ class NumericBox extends UI {
|
|||
this._input.addEventListener("input", this._boundInput);
|
||||
}
|
||||
_createInput() {
|
||||
this._input = document.createElement("div");
|
||||
this._input = document.createElement("input");
|
||||
this._input.classList.add("numericBox");
|
||||
|
||||
this.element.appendChild(this._input);
|
||||
|
|
|
@ -60,13 +60,13 @@ class SwitchBox extends UI {
|
|||
this.setValue(!this._value);
|
||||
}
|
||||
_setSize() {
|
||||
let dh = this._width / 2.5;
|
||||
let dh = this._width / 2;
|
||||
dh = Math.min(dh, this._height);
|
||||
let dw = dh * 2.5;
|
||||
let dw = dh * 2;
|
||||
|
||||
this._iWidth = dw;
|
||||
this._iHeight = dh;
|
||||
let circleDiameter = Math.round(dh * 0.80);
|
||||
let circleDiameter = Math.round(dh * 0.75);
|
||||
|
||||
this._input.style.width = dw + "px";
|
||||
this._input.style.height = dh + "px";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue