Lattice Grid Buy a licence

Layout · console.warn

layout: compact: {value} is not a compaction mode; expected {modes}. Falling back to "vertical".

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

Warnings referencelayout.compact.unknown

Identifier
layout.compact.unknown
Raised by
Layout
Since
1.59.0

What happened

The layout's compact setting was not one of the three modes. Compaction decides how windows close the gaps left by a move or a close, so an unreadable value cannot be guessed at; the layout uses "vertical", its default. A value that is not a string is described by its type rather than printed, because printing it would risk a throw inside the warning itself.

The fix

Set compact to 'vertical', 'horizontal' or 'none'.

The smallest fix

createLayout(el, { compact: 'horizontal', windows: [ … ] });

Reference

Covered in full at the API reference.