Repository navigation
Description
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.
AppLayoutAddon/src/main/java/com/flowingcode/addons/applayout/AppLayout.java
Lines 160 to 176 in d8386fe
| /** | |
| * 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
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
paodb commentedon Nov 27, 2026
Verified on
master(4f5098f) by running the demo locally with Vaadin 24.4.4 and with thev25profile (Vaadin 25.0.0).Both
fixedandrevealswork as expected:/applayout-full) on both versions, and inside the demo iframe on Vaadin 24.This was most likely fixed by #147, which removed the
max-heightconstraint on the demo body. Closing as completed.