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 #3546: Splitter error with only 1 panel #3549

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

melloware
Copy link
Member

@melloware melloware commented Nov 1, 2022

Defect Fixes

Fix #3546: Splitter error with only 1 panel

@melloware melloware added the Core Team Issue or pull request has been *opened* by a member of Core Team label Nov 1, 2022
@melloware melloware changed the title Fix #3456: Splitter error with only 1 panel Fix #3546: Splitter error with only 1 panel Nov 1, 2022
@melloware melloware merged commit 0d25917 into primefaces:master Nov 1, 2022
@melloware melloware deleted the PR3546 branch November 1, 2022 19:07
@kalinkrustev
Copy link
Contributor

Sorry, I did not know children could be non array. But I also wonder if specifying a size for a single panel makes sense, in which case this fix will not apply the size and instead use 100%

@melloware
Copy link
Member Author

Sure I was not expecting someone to use 1 panel. You want to test and submit another PR?

@kalinkrustev
Copy link
Contributor

I do not know yet. I will try to check if it makes sense to have one panel width first.

@kalinkrustev
Copy link
Contributor

kalinkrustev commented Nov 14, 2022

Unfortunately, this fix undid what was fixed by #3535

@kalinkrustev
Copy link
Contributor

I think the next fix should also include a snapshot test, so future errors can be limited.

@melloware
Copy link
Member Author

I have snapshot tests in place now

@kalinkrustev
Copy link
Contributor

Yes, but the snapshots contained incorrect values.
Check here #3646 for the bugfix including support for specifying the size of a single panel and also a few more snapshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team Issue or pull request has been *opened* by a member of Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Splitter: Error with only 1 panel
2 participants