Skip to content
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

no horizontal scrollbar in listview #7339

Open
djobet opened this issue Jan 12, 2025 · 0 comments
Open

no horizontal scrollbar in listview #7339

djobet opened this issue Jan 12, 2025 · 0 comments
Labels
a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) bug Something isn't working need triaging Issue that the owner of the area still need to triage

Comments

@djobet
Copy link

djobet commented Jan 12, 2025

Bug Description

When a list view has an item which does not fit horizontally, no horizontal scrollbar is shown.
It's possible to alleviate a little bit the problem by putting the ListView into a Scrollview first but

  • one has to manually compute the viewport-width
  • the vertical scrollbar of the listview is now available only when scrolling horizontally to the end (that's because we're scrolling the scrollview and not the listview)

Reproducible Code (if applicable)

export component App inherits Window {
    ListView {
        for t in [
            "small line",
            "small line",
            "long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, long line, ",
            "small line",] : Text {
            text: t;
        }
    }
}

Environment Details

  • Slint Version: 1.8.0, 1.9.1
  • Platform/OS: Linux Fedora 41
  • Programming Language: Rust/Wayland
  • Backend/Renderer: winit/qt

Product Impact

Trying to build a chess pgn reader where move variants are showed in a tree.
Long variants are not visible, so yes it's pretty blocking.

@djobet djobet added bug Something isn't working need triaging Issue that the owner of the area still need to triage labels Jan 12, 2025
@ogoffart ogoffart added the a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) bug Something isn't working need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

2 participants