Skip to content

Fixed and Reveals #135

@javier-godoy

Description

@javier-godoy

Describe the bug

AppLayout have fixed and reveals features, but they are not working in the demo.

/**
* Sets the fixed attribute so it mantains the header fixed at the top
* so it never moves away.
* @param fixed
*/
public void setFixed(boolean fixed) {
getElement().setAttribute("fixed", fixed);
}
/**
* Sets the reveals attribute so it slides back the header when scrolling
* back up.
* @param reveals
*/
public void setReveals(boolean reveals) {
getElement().setAttribute("reveals", reveals);
}

Expected behavior

  • With fixed, the header stays in place at the top at all times.
  • With reveals, the header reappears upon upward scrolling.

Minimal reproducible example

https://addonsv24.flowingcode.com/applayout/applayout-demo

Add-on Version

6.0.1-SNAPSHOT

Vaadin Version

24.7.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions