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 positioning of interop views. #922

Merged
merged 2 commits into from Dec 6, 2023

Conversation

m-sasha
Copy link

@m-sasha m-sasha commented Dec 5, 2023

Proposed Changes

SwingPanel and UIKitView used the "parent" coordinates, which ignores the last positioning modifier in the chain. Instead, just use the position of the current node.

Testing

Test: Added a unit test

Issues Fixed

Fixes: JetBrains/compose-multiplatform#4005 and also the same problem with UIKitView

@elijah-semyonov
Copy link

I guess it also fixes this?

@m-sasha
Copy link
Author

m-sasha commented Dec 5, 2023

I guess it also fixes this?

Very possible.

@m-sasha m-sasha force-pushed the m-sasha/fix-interop-view-position branch from 1e7a94a to c5efdc0 Compare December 5, 2023 14:53
@m-sasha m-sasha merged commit 9e63b1f into jb-main Dec 6, 2023
1 check passed
@m-sasha m-sasha deleted the m-sasha/fix-interop-view-position branch December 6, 2023 06:30
mazunin-v-jb pushed a commit that referenced this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants