com.vaadin.flow.component.page.

Annotation Interface BodySize

@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented public @interface BodySize

Defines the body size that will be added to the HTML of the host pages.

If no @BodySize has been applied, the default values height:100vh and width:100% will be used, so the body will fill the entire viewport. If you don't want to set any size for the body, you must apply an empty @BodySize annotation to disable the default values.

Since:

1.0

Author:

Vaadin Ltd

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description

    Definition for body height.

    Definition for body width.

  • Element Details

    • height

      String height

      Definition for body height.

      Returns:

      the body height to set

      Default:

      ""

    • width

      String width

      Definition for body width.

      Returns:

      the body width to set

      Default:

      ""