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

column! not working in styling example #2056

Open
2 tasks done
Barugon opened this issue Aug 30, 2023 · 3 comments
Open
2 tasks done

column! not working in styling example #2056

Barugon opened this issue Aug 30, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Barugon
Copy link

Barugon commented Aug 30, 2023

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Here's the result of running the styling example:
Screenshot from 2023-08-29 17-08-33

Note the missing checkbox and toggler to the right of the scroll area.

This code doesn't seem to be working properly.

What is the expected behavior?

Checkbox and toggler should be visible to the right of the scroll area.

Version

master

Operating System

Linux

Do you have any log output?

No response

@Barugon Barugon added the bug Something isn't working label Aug 30, 2023
@akshayr-mecha
Copy link
Contributor

akshayr-mecha commented Sep 1, 2023

let scrollable = scrollable( column!["Scroll me!", vertical_space(800), "You did it!"] .width(Length::Fill), ) .height(100);
Length::Fill of column inside scrollable is causing this issue
as scrollable is not having width defined so column inside it is taking entire width
that is why checkbox and togger are getting hidden
Can be patched by adding width or removing Length::Fill

        let scrollable = scrollable(
            column!["Scroll me!", vertical_space(800), "You did it!"]
                .width(Length::Fill),
        )
        .width(300)
        .height(100);

@akshayr-mecha
Copy link
Contributor

akshayr-mecha commented Sep 1, 2023

Created PR #2062.

@Barugon
Copy link
Author

Barugon commented Sep 1, 2023

This also seems to work:

    let scrollable = scrollable(column!["Scroll me!", vertical_space(800), "You did it!"])
      .width(Length::Fill)
      .height(100);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants