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

iOS. Fixed bug with selection handle #869

Merged
merged 4 commits into from Oct 12, 2023

Conversation

dima-avdeev-jb
Copy link

@dima-avdeev-jb dima-avdeev-jb commented Oct 11, 2023

Previously SelectionHandle looks like this on BasicTextField:

image

It was because of Popup padding

Not, it was fixed:

image

@@ -25,5 +25,6 @@ val IosBugs = Screen.Selection(
KeyboardPasswordType,
UIKitRenderSync,
DispatchersMainDelayCheck,
StartRecompositionCheck
StartRecompositionCheck,
SelectionHandlePadding,
Copy link
Member

Choose a reason for hiding this comment

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

Is it iOS only?

Copy link
Member

Choose a reason for hiding this comment

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

Please move it to common, there is no specific uikit API usage here.

Copy link
Author

Choose a reason for hiding this comment

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

Code sample not iOS only. So, moved to commonMain sourceSet in TextFields section

Copy link
Author

Choose a reason for hiding this comment

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

Done

@@ -52,6 +54,7 @@ private val RADIUS = 6.dp
*/
private val THICKNESS = 2.dp

@OptIn(ExperimentalComposeUiApi::class)
Copy link
Member

Choose a reason for hiding this comment

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

BTW It's cross-module experimental, but that's not first usage of it. So I guess it's OK here.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for notice about it!

@@ -25,5 +25,6 @@ val IosBugs = Screen.Selection(
KeyboardPasswordType,
UIKitRenderSync,
DispatchersMainDelayCheck,
StartRecompositionCheck
StartRecompositionCheck,
SelectionHandlePadding,
Copy link
Member

Choose a reason for hiding this comment

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

Please move it to common, there is no specific uikit API usage here.

@dima-avdeev-jb dima-avdeev-jb changed the title iOS. Reproduce bug with selection handle iOS. Fixed bug with selection handle Oct 11, 2023
@dima-avdeev-jb dima-avdeev-jb merged commit d0a8fe4 into jb-main Oct 12, 2023
3 checks passed
@dima-avdeev-jb dima-avdeev-jb deleted the dima.avdeev/reproduce-bug-selection-handle branch October 12, 2023 08:35
mazunin-v-jb pushed a commit that referenced this pull request Dec 7, 2023
Previously SelectionHandle looks like this on BasicTextField:

It was because of Popup padding
Not, it was fixed:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants