fix grouped widget arrangement in belt mode
This commit is contained in:
parent
6ba89b1b8f
commit
27f1f6c444
2 changed files with 8 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue