ui.Panel.Layout.absolute
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
طرحبندی را برمیگرداند که ویجتهای آن را کاملاً نسبت به پانل قرار میدهد.
ویژگی سبک "موقعیت" ویجت اضافه شده نحوه قرارگیری آن را تعیین می کند. موقعیت های زیر پشتیبانی می شوند:
- بالا-چپ، بالا-مرکز، بالا-راست
- وسط-چپ، وسط-راست
- پایین-چپ، پایین-مرکز، پایین-راست
اگر هیچ موقعیتی مشخص نشده باشد، ویجت در پشت ویجتهای قرار داده شده (یعنی با شاخص z کمتر از) قرار میگیرد.
استفاده | برمی گرداند | ui.Panel.Layout.absolute() | ui.Panel.Layout |
بدون استدلال
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eReturns a layout that positions widgets based on absolute positioning within the panel.\u003c/p\u003e\n"],["\u003cp\u003eWidgets can be placed using predefined positions like "top-left," "bottom-right," etc., through their "position" style property.\u003c/p\u003e\n"],["\u003cp\u003eWidgets without a specified position are placed behind positioned widgets.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eui.Panel.Layout.absolute()\u003c/code\u003e requires no arguments and returns a ui.Panel.Layout object.\u003c/p\u003e\n"]]],["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"],null,["# ui.Panel.Layout.absolute\n\n\u003cbr /\u003e\n\nReturns a layout that places its widgets absolutely relative to the panel.\n\n\u003cbr /\u003e\n\nAn added widget's \"position\" style property determines how it is placed. The following positions are supported:\n\n- top-left, top-center, top-right\n\n- middle-left, middle-right\n\n- bottom-left, bottom-center, bottom-right\n\nIf no position is specified, the widget will be placed behind (that is, with a lower z-index than) the positioned widgets.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|-----------------|\n| `ui.Panel.Layout.absolute()` | ui.Panel.Layout |\n\n**No arguments.**"]]