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 column content changes #1688

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Fix column content changes #1688

merged 1 commit into from
Nov 20, 2023

Conversation

swankjesse
Copy link
Collaborator

@swankjesse swankjesse commented Nov 17, 2023

We had a bug where changes to a column's content wouldn't trigger all the necessary layout updates.

@swankjesse swankjesse force-pushed the jwilson.1117.resize_container branch from 91ec7ba to 2aa729d Compare November 19, 2023 00:55
@swankjesse swankjesse changed the title WIP: test column container changes Fix column content changes Nov 19, 2023
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one was broken before the code change. It showed the B at 50%, not at the bottom.

@swankjesse swankjesse marked this pull request as ready for review November 19, 2023 01:07
@swankjesse swankjesse force-pushed the jwilson.1117.resize_container branch 2 times, most recently from c532c61 to 54c9073 Compare November 19, 2023 02:33
We had a bug where changes to a column's content wouldn't
trigger all the necessary layout updates.
@swankjesse swankjesse force-pushed the jwilson.1117.resize_container branch from 54c9073 to 7615b59 Compare November 19, 2023 02:34
@swankjesse swankjesse requested a review from veyndan November 20, 2023 14:40
Comment on lines +70 to +74
rootNode.requestedWidth = Size.Undefined
rootNode.requestedMaxWidth = Size.Undefined
rootNode.requestedHeight = Size.Undefined
rootNode.requestedMaxHeight = Size.Undefined

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any downside to not specifying the requested sizes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just clears them out so that we can set the ones we want below. Otherwise it ends up accumulating both exact and max values when it’s repeatedly measured.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably create an Issue to have these work with Compose UI so we don't forget about it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do better than that. I can fix the problem!
#1691

@swankjesse swankjesse merged commit fbd720a into trunk Nov 20, 2023
8 checks passed
@swankjesse swankjesse deleted the jwilson.1117.resize_container branch November 20, 2023 17:04
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.

3 participants