typograph-editor-documentation
    Preparing search index...

    Function fit_group_box

    • Fit a resized group's box to its contents as drawn (TYP-919), before the step is recorded.

      A group's box is derived from its contents whenever the group is built again (opening the template, another window applying the change, an undo). A child turned between quarter turns keeps the plain scaling and can come to reach past the box that was resized, so without this the box would jump on reopening. Called from every gesture that resizes a group: a handle, a multiple selection's handle, and the parameter bar's width and height. Anything that is not an untransformed group is left alone, so callers need not ask.

      Parameters

      • elements: PageElement | PageElement[]

      Returns void