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 adding external components to ComposePanel #1214

Draft
wants to merge 1 commit into
base: jb-main
Choose a base branch
from

Conversation

MatkovIvan
Copy link
Member

Proposed Changes

  • Filter interop logic in case if some component was added extarnally (or it's a container for layers)

Testing

Test: TBD

@@ -155,6 +156,10 @@ internal class ComposeSceneMediator(

override fun componentAdded(e: ContainerEvent) {
val component = e.child
if (component !is SwingPanelContainer) {
Copy link
Collaborator

@igordmn igordmn Mar 22, 2024

Choose a reason for hiding this comment

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

Could you describe the issue? I thought that this method is supposed to work for all components, not only for SwingPanelContainer. Don't we need addClipComponent and subscribeToMouseEvents for them?

Copy link
Collaborator

@igordmn igordmn Mar 22, 2024

Choose a reason for hiding this comment

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

A test would be helpful for understanding

Copy link
Member Author

Choose a reason for hiding this comment

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

It was fixed a while ago, so I decided to make PR to not forget about it. Converted to draft for now - I'll document/test-cover it once I have time

@MatkovIvan MatkovIvan marked this pull request as draft March 22, 2024 10:29
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