FitΒΆ

/libs/granite/ui/components/foundation/layouts/fit

The layout to render to fit the width and height of the parent.

It has the following content structure at the layout resource:

granite:LayoutsFit
methodstring
  1. absolute

The fit mechanic to use.

default
If the property is not specified. 100% height and width are used.
absolute
Absolute positioning is used.

It has the following content structure at the main resource:

granite:LayoutsFitMain
content

The component to be maximized.

Example:

+ mydialog
  - sling:resourceType = "granite/ui/components/foundation/container"
  + layout
    - sling:resourceType = "granite/ui/components/foundation/layouts/fit"
    - method = "absolute"
  + content
    - sling:resourceType = "granite/ui/components/foundation/container"