ui.Panel.Layout.absolute
Returns a layout that places its widgets absolutely relative to the panel.
An added widget's "position" style property determines how it is placed. The following positions are supported:
- top-left, top-center, top-right
- middle-left, middle-right
- bottom-left, bottom-center, bottom-right
If no position is specified, the widget will be placed behind (that is, with a lower z-index than) the positioned widgets.
Usage | Returns |
---|
ui.Panel.Layout.absolute() | ui.Panel.Layout |
No arguments.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Returns a layout that positions widgets based on absolute positioning within the panel."],["Widgets can be placed using predefined positions like \"top-left,\" \"bottom-right,\" etc., through their \"position\" style property."],["Widgets without a specified position are placed behind positioned widgets."],["Using `ui.Panel.Layout.absolute()` requires no arguments and returns a ui.Panel.Layout object."]]],["This content describes a layout that positions widgets absolutely within a panel using the widget's \"position\" style property. Supported positions include top-left, top-center, top-right, middle-left, middle-right, bottom-left, bottom-center, and bottom-right. Widgets without a specified position are placed behind those that do, indicated by a lower z-index. The `ui.Panel.Layout.absolute()` method creates this layout and returns a `ui.Panel.Layout` object. The method accepts no arguments.\n"]]