Lattice Grid Buy a licence

Layout ยท console.warn

layout: move("{id}") - the window is maximised or minimised and owns its own geometry; restore() it first.

Printed by Layout, prefixed [lattice], since 1.54.0.

Warnings referencelayout.move.mode.*

Identifier
layout.move.mode.*
Raised by
Layout
Since
1.54.0

What happened

The window exists, but it is maximised or minimised. In either mode the layout owns the window's geometry - a maximised window fills the host, a minimised one is a single row - so accepting a programmatic placement would either be thrown away on restore or fight the mode. The move was refused and false returned; the window's stored placement is untouched and is what it returns to.

The fix

Call layout.restore(id) first and move it afterwards, or move it and leave the mode to be left by the user.

The smallest fix

layout.restore(id);
layout.move(id, { xPos: 0, yPos: 0, xSize: 6, ySize: 4 });

Reference

Covered in full at the API reference.