Skip to content

Fixed and Reveals #152

Not planned
Not planned

Description

@scardanzan

Recreates #135 (#135), which was closed as "not planned" on 2026-11-10 during a personal cleanup of projects. Closing it did not imply that the underlying issue had been resolved.

Current status (reviewed on 2026-11-16)

Needs runtime verification.

AppLayout.setFixed/setReveals still only set the fixed/reveals attributes (AppLayout.java:165-176) and the demo still binds them (ApplayoutDemoView.java:88-89, 145-146). The demo's max-height: 368px body constraint was removed in 83614a8 (#144), which may affect scrolling behaviour. Behaviour was not checked in a running demo.

This was checked by reading the code on the default branch, without building the project or running tests. The discussion on the original issue may have more context.

Original description

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

Activity

  1. added
    bug
    on Nov 16, 2026
  2. paodb commented on Nov 27, 2026

    @paodb
    Member

    Verified on master (4f5098f) by running the demo locally with Vaadin 24.4.4 and with the v25 profile (Vaadin 25.0.0).

    Both fixed and reveals work as expected:

    • Reveals (default): the header hides when scrolling down and reappears when scrolling back up. Checked in the standalone view (/applayout-full) on both versions, and inside the demo iframe on Vaadin 24.
    • Fixed (with Reveals off): the header stays at the top while scrolling.

    This was most likely fixed by #147, which removed the max-height constraint on the demo body. Closing as completed.

  3. moved this from Inbox (needs triage) to Done in Flowing Code Addonson Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions