"layoutMinimumSize"

Returns the minimum layout size that is required to display the panel content.

Synopsis

getValue(string panelName, "layoutMimimumSize", int width, int height);

panelName.layoutMinimumSize( int width, int height);

Parameters

Parameter Description
width minimal required width for the layout
height minimal required height for the layout

Description

The function returns the minimum required size of the layout after the reserved but unused area of invisible objects has been subtracted.

Example

Following example demonstrates how to increase/decrease the size of a panel after objects have been turned visible/invisible.

int w, h;
getValue(self, "layoutMinimumSize", w, h);
self.size(w, h);text

Assignment

Panel