You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.page.

Annotation Type 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
      String height

      Definition for body height.

      String width

      Definition for body width.

    • Element Detail

      • 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:

        ""