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

Use the new insets API in EmojiSearch #2464

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

swankjesse
Copy link
Collaborator

No description provided.

@@ -275,6 +276,7 @@ internal class UIViewLazyList :
rowHeight = UITableViewAutomaticDimension
separatorStyle = UITableViewCellSeparatorStyleNone
backgroundColor = UIColor.clearColor
contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without this, UIScrollView adds the appropriate amount of space after the last element automatically, and we get double the space that we want.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(Though I didn’t see this behavior in Column(overflow = Scroll), which is surprising)

@swankjesse
Copy link
Collaborator Author

swankjesse commented Nov 19, 2024

Android

We draw all the way to the bottom edge of the screen:
Screenshot_20241119_155128

And put space under the last element so it isn’t obscured by the bottom line thing:
Screenshot_20241119_155219

iOS

Draw all the way to the bottom edge:
Simulator Screenshot - iPhone 15 Pro - 2024-11-19 at 16 28 28

Space under the last element:
Simulator Screenshot - iPhone 15 Pro - 2024-11-19 at 16 28 02

@swankjesse swankjesse force-pushed the jwilson.1119.insets_runtime branch 2 times, most recently from 1a60f52 to eced783 Compare November 20, 2024 22:17
Base automatically changed from jwilson.1119.insets_runtime to trunk November 21, 2024 00:12
@swankjesse swankjesse force-pushed the jwilson.1119.insets_emojisearch branch from cc5645c to 41fbc99 Compare November 21, 2024 00:21
@swankjesse swankjesse enabled auto-merge (squash) November 21, 2024 00:21
@swankjesse swankjesse merged commit 6e172dd into trunk Nov 21, 2024
11 checks passed
@swankjesse swankjesse deleted the jwilson.1119.insets_emojisearch branch November 21, 2024 03:44
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