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

update(Group): The fromObject method supports custom groups #10210

Closed
wants to merge 1 commit into from

Conversation

zhe-he
Copy link
Contributor

@zhe-he zhe-he commented Oct 15, 2024

When the user customizes a group and sets a custom layout type, it is necessary to override the fromObject method of the custom group to meet the default custom layout type. This PR fixes only the fromObject method of the custom group without affecting previous functionality, allowing users not to override the fromObject method to meet their needs.

#10198

Copy link

codesandbox bot commented Oct 15, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@zhe-he
Copy link
Contributor Author

zhe-he commented Oct 15, 2024

It can also be left unmerged. When users encounter similar situations, they will find this message and then they will know how to make modifications.

@asturur
Copy link
Member

asturur commented Oct 15, 2024

This is not an issue with custom group, is an issue with any group running a layout manager initialization phase when the group is already initialized.
This is how it was worked around and can't be undone for now. This PR will work only with your specific layout manager.
The reason we did this it was to remove the 'already initialized' flag from the group constructor.

@asturur asturur closed this Oct 15, 2024
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

Successfully merging this pull request may close these issues.

2 participants