摘要 |
A method is provided for laying out a child element in a parent element in a window. If a dimension of the child element is fixed, the method includes (1) allocating a fixed dimension to the child element from a remaining dimension of the parent element that has not been allocated. If the dimension of the child element is variable based on a content of the child element, the method includes (2) determining a required dimension based on the content of the child element and (3) allocating the required dimension to the child element from the remaining dimension of the parent element. If the dimension of the child element is proportional based on a weight of the child element and the remaining dimension of the parent element, the method includes (4) determining a proportional dimension of the child element and (5) allocating the proportional dimension to the child element.
|