You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'Styled badge' demo keeps pushing the scroll to the bottom in v25 #51
Navigate to the styled badge in the vaadin 25 demo and the view will automatically push the scroll to the bottom and it will not let you go back up.
This does not happen in the v24 demo.
Expected behavior
The demo view should not make the scroll stick to the bottom
The issue is not in BadgeList nor in Commons Demo, but in AddonsDemo25. It can be reproduced in both staging and production, both running BadgeList 2.1.1-SNAPSHOT on Vaadin 25.3.0.
Root cause
In AddonsDemo25, addons-info.json still lists BadgeList with "auraSupported": false. Because of that, DemoLayout doesn't place the TabbedDemo directly in the AppLayout, but inside the wrapper Div created by createUnsupportedThemeWrapper. That wrapper has no height, so the height: 100% of the TabbedDemo (and its split layout) can't be resolved and the layout grows to the full height of the source code. The code viewer then doesn't scroll on its own and the whole app-layout content becomes scrollable.
When hovering an example, the code viewer highlights the matching block with scrollIntoView, which now scrolls the whole page down to the code. Scrolling back up with the wheel puts the mouse over an example again, so the page jumps down again. That's why the scroll looks stuck at the bottom. The v24 demo doesn't wrap the content, which is why it doesn't happen there.
How to fix it
BadgeList already supports Aura (see #54), but AddonsDemo25 was never updated to reflect that. Setting "auraSupported": true for BadgeList in AddonsDemo25 addons-info.json removes the wrapper and fixes this issue (verified by giving the wrapper a full height in the browser: the page no longer scrolls on hover).
Separately, the wrapper in createUnsupportedThemeWrapper should also get a full size (setSizeFull()), otherwise the same problem will affect any Lumo-only add-on that uses TabbedDemo with source highlighting.
Activity
javier-godoy commentedon Jul 13, 2026
Confirmed
paodb commentedon Oct 16, 2026
The issue is not in BadgeList nor in Commons Demo, but in AddonsDemo25. It can be reproduced in both staging and production, both running BadgeList 2.1.1-SNAPSHOT on Vaadin 25.3.0.
Root cause
In AddonsDemo25,
addons-info.jsonstill lists BadgeList with"auraSupported": false. Because of that,DemoLayoutdoesn't place theTabbedDemodirectly in theAppLayout, but inside the wrapperDivcreated bycreateUnsupportedThemeWrapper. That wrapper has no height, so theheight: 100%of theTabbedDemo(and its split layout) can't be resolved and the layout grows to the full height of the source code. The code viewer then doesn't scroll on its own and the whole app-layout content becomes scrollable.When hovering an example, the code viewer highlights the matching block with
scrollIntoView, which now scrolls the whole page down to the code. Scrolling back up with the wheel puts the mouse over an example again, so the page jumps down again. That's why the scroll looks stuck at the bottom. The v24 demo doesn't wrap the content, which is why it doesn't happen there.How to fix it
BadgeList already supports Aura (see #54), but AddonsDemo25 was never updated to reflect that. Setting
"auraSupported": truefor BadgeList in AddonsDemo25addons-info.jsonremoves the wrapper and fixes this issue (verified by giving the wrapper a full height in the browser: the page no longer scrolls on hover).Separately, the wrapper in
createUnsupportedThemeWrappershould also get a full size (setSizeFull()), otherwise the same problem will affect any Lumo-only add-on that usesTabbedDemowith source highlighting.paodb commentedon Oct 19, 2026
Fixed in https://github.com/FlowingCode/AddonsDemo/pull/497