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

Error with Number Input in Grid #278

Open
Ultraxime opened this issue Aug 15, 2024 · 2 comments
Open

Error with Number Input in Grid #278

Ultraxime opened this issue Aug 15, 2024 · 2 comments

Comments

@Ultraxime
Copy link
Contributor

Hello,

I encountered an issue when integrating a Number Input in a Grid.
The Number Input seems to be cropped, I tried to fix the code myself but did not find its origin.

The code is the following

let stars = NumberInput::new(self.stars, 0..=3, move |stars| {
    messaging(Message::Stars(stars))
});

Grid::with_rows(vec![
    GridRow::with_elements(vec![stars]),
])

and the rendering is
image
We can see that the value is not shown (should have been 3) and the decrease button is not here.

During these peregrinations, I also noticed that the padding was not working well.
image
Here we can see that the padding is not the same to the left and to the right in the Card widget

I'll be happy to help

@genusistimelord
Copy link
Collaborator

it would be something in the Layout functions that deal with how it should be displayed.

@Ultraxime
Copy link
Contributor Author

I guessed but I haven't figured out how it works

Maybe I will dive in it later, but as for now I don't know how to do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants