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

fix: allow setting flex-grow to 0 through FlexComponent #7176

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

MikeV2000
Copy link
Contributor

Description

As mentioned in the issue below the setFlexGrow method in FlexComponent removes the flex-grow attribute if 0 is passed in. The expected behavior is that it is set to 0.

Fixes #1244 (issue)

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.
  • [] I have not completed some of the steps above and my pull request can be closed immediately.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

@sissbruecker sissbruecker changed the title bug: FlexComponent setFlexGrow to 0 sets the style attribute instead of removing it fix: allow setting flex-grow to 0 through FlexComponent Mar 10, 2025
@sissbruecker sissbruecker merged commit 04552a4 into vaadin:main Mar 10, 2025
5 checks passed
vaadin-bot pushed a commit that referenced this pull request Mar 10, 2025
* bug: FlexComponent setFlexGrow to 0 sets the style attribute instead of removing it

* add regression test

---------

Co-authored-by: Sascha Ißbrücker <[email protected]>
vaadin-bot pushed a commit that referenced this pull request Mar 10, 2025
* bug: FlexComponent setFlexGrow to 0 sets the style attribute instead of removing it

* add regression test

---------

Co-authored-by: Sascha Ißbrücker <[email protected]>
sissbruecker added a commit that referenced this pull request Mar 10, 2025
* bug: FlexComponent setFlexGrow to 0 sets the style attribute instead of removing it

* add regression test

---------

Co-authored-by: MikeV2000 <[email protected]>
Co-authored-by: Sascha Ißbrücker <[email protected]>
sissbruecker added a commit that referenced this pull request Mar 10, 2025
* bug: FlexComponent setFlexGrow to 0 sets the style attribute instead of removing it

* add regression test

---------

Co-authored-by: MikeV2000 <[email protected]>
Co-authored-by: Sascha Ißbrücker <[email protected]>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.8.0.alpha2 and is also targeting the upcoming stable 24.8.0 version.

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

Successfully merging this pull request may close these issues.

FlexComponent setFlexGrow 0 removes style attribute instead of setting it.
3 participants