window-fit

long ( window-fit long window-id)

Fits the panel, dialog box or frame around its children.