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 #150 #151

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Fix #150 #151

merged 1 commit into from
Dec 6, 2024

Conversation

halilozercan
Copy link
Owner

When calculating the height for PrefixListLayout, we were only adding up the heights of each item. When the items is empty or small, the reported height in the final layout would be too small, causing composables under it to draw over the list layout and prefixes.

The fix is to also calculate the total height of prefixes and compare with the items height. The bigger of them should be reported as the height of the list.

When calculating the height for PrefixListLayout, we were only adding up the heights of each item. When the items is empty or small, the reported height in the final layout would be too small, causing composables under it to draw over the list layout and prefixes.

The fix is to also calculate the total height of prefixes and compare with the items height. The bigger of them should be reported as the height of the list.
@halilozercan halilozercan merged commit 97a9023 into main Dec 6, 2024
1 of 2 checks passed
@halilozercan halilozercan deleted the halilozercan/fix-empty-items-list-layout branch December 6, 2024 01:52
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.

1 participant