The ScaleLayout is a layout manager designed for use with XUI's page editor. By default the page editor uses a null layout and the components are position with absolute coordinates. While this make editing and layout flexible and easy it is not always appropriate at runtime as the display size of a page may not always match the design size. The scale layout simply scales all coordinates up or down in proportion to the actual display size.
The scale layout is a simple solution but it takes little account of the component content or type and may not be suitable for all situations, however it is generally a better choice than having no layout manager at all. The scale layout may also be useful in conjunction with other layouts, particularly where the components managed by the scale layout do not manage text.
There are no comments on this page. [Add comment]