deepShrink

fun Group.deepShrink(shrinkParents: Boolean = false, invalidateParents: Boolean = true)

Reduces the size of the whole group to (0, 0) and invalidates hierarchy, effectively reducing the size of this group to the minimum.

This method recursively shrinks all children of the group except for Labels. That can cause custom WidgetGroups to break if their elements are arranged manually (e.g. via Element.setSize).

If this method causes your group to stop filling its cell, you should consider calling deepInvalidate afterwards.

Parameters

invalidateParents

whether to invalidate hierarchy. Has no special effect if shrinkParents is true.

shrinkParents

whether to shrink all parents except the scene root. Use with caution.