fix grouped widget arrangement in belt mode

This commit is contained in:
Stewart Allen 2021-01-24 20:50:10 -05:00
commit 27f1f6c444
2 changed files with 8 additions and 3 deletions

View file

@ -1751,7 +1751,12 @@
if (isBelt) {
let bounds = platformUpdateBounds(),
movey = -(dev.bedDepth / 2 + bounds.min.y);
forAllWidgets(widget => widget.move(0, movey + 5, 0));
forAllWidgets(widget => {
// only move the master widget in the group
if (widget.id === widget.group.id) {
widget.move(0, movey + 5, 0)
}
});
}
platform.update_origin();