add widget grouping for future multi-extruder setups

This commit is contained in:
Stewart Allen 2020-04-07 19:56:30 -04:00
commit e9a04969ee
4 changed files with 243 additions and 128 deletions

View file

@ -382,7 +382,11 @@ var gs_moto_ui = exports;
ip.setAttribute("rows", height);
ip.setAttribute("wrap", "off");
} else {
ip.setAttribute("size", size);
if (Number.isInteger(size)) {
ip.setAttribute("size", size);
} else {
ip.setAttribute("style", `width:${size}`);
}
}
ip.setAttribute("type", "text");
row.style.display = hide ? 'none' : '';