-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Tooltips and at least some forms of hover don't work in IntelliJ on 1.6 #4123
Tooltips and at least some forms of hover don't work in IntelliJ on 1.6 #4123
Comments
## Proposed Changes - Use window coordinates to check if it's in bounds - it's different after #956 ## Testing Test: run added unit test or the next sample: ```kt fun main() = SwingUtilities.invokeLater { SwingComposeWindow() } fun SwingComposeWindow() { val window = JFrame() window.defaultCloseOperation = WindowConstants.EXIT_ON_CLOSE val panel = JPanel() panel.layout = GridLayout(2, 1) panel.add(JPanel()) panel.add(ComposePanel().apply { setContent { ComposeContent(background = Color.Green) } }) window.contentPane.add(panel, BorderLayout.CENTER) window.setSize(800, 600) window.isVisible = true } @OptIn(ExperimentalFoundationApi::class) @composable fun ComposeContent(background: Color) { Box( modifier = Modifier.fillMaxSize().background(color = background), contentAlignment = Alignment.Center ) { TooltipArea({ BasicText("Tooltip", Modifier.background(Color.Magenta).padding(8.dp)) }) { BasicText("Hover here", Modifier.background(Color.Gray).padding(8.dp)) } } } ``` ## Issues Fixed Fixes JetBrains/compose-multiplatform#4123
@MatkovIvan thanks for the super quick fix! Can you let me know when the change ships in a dev build, so I can update the dependency in Jewel? |
It's already in 1.6.0-dev1369 |
@MatkovIvan just tested in Jewel and it seems to fix all issues on my machine! I'm going to release a Jewel version with the fix ASAP. Hopefully this also works for @fscarponi and @lamba92 |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Describe the bug
This doesn't show any tooltip in IJ, but works in standalone apps. It looks like in general hover doesn't work in the IDE anymore. Tested on 23.3.2 on macOS.
Affected platforms
Versions
The text was updated successfully, but these errors were encountered: