Skip to content

The empty view shown when there are no routes has an extra vertical scrollbar #21422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Artur- opened this issue May 13, 2025 · 1 comment
Open

Comments

@Artur-
Copy link
Member

Artur- commented May 13, 2025

Description of the bug

When you have no views, the following is shown

Image

Expected behavior

There should be no scrollbar

Minimal reproducible example

https://start.spring.io/ -> add Vaadin -> run

Versions

Hilla: 24.7.3
Flow: 24.7.5
Vaadin: 24.7.3
Spring Boot: 3.4.5
Spring: 6.2.6
Copilot: 24.7.3
Frontend Hotswap: Disabled, using pre-built bundle
OS: aarch64 Mac OS X 15.4.1
Java: JetBrains s.r.o. 21.0.5
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Java Hotswap: Hotswap is not enabled
IDE Plugin: Not installed

@caalador
Copy link
Contributor

Seems like a side effect of margin collapse, but I'm not really certain how this should be fixed.

It's clear as the html (blue) is visible on top of body (green) and the body is the same size as html making the scrollbar come due to this offset
Image

perhaps @jouni has some idea what would be the correct fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Low Priority (P3)
Development

No branches or pull requests

3 participants