mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-82344 Fix disappearing tooltip
(cherry picked from commit f398d0b4db0713c0f47081c2fc82ca36161bae79) GitOrigin-RevId: 92b1755d5f05d7e9860278f919a0d3393d88994c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4f61a64f58
commit
9bb7268342
+5
-2
@@ -11,6 +11,8 @@ import com.intellij.ui.GotItTooltip
|
||||
import com.intellij.util.IconUtil
|
||||
import com.intellij.util.ui.UIUtil
|
||||
import org.jetbrains.annotations.Nls
|
||||
import java.awt.Point
|
||||
import javax.swing.SwingUtilities
|
||||
|
||||
object PyCommunityToUnifiedTooltip {
|
||||
|
||||
@@ -33,8 +35,9 @@ object PyCommunityToUnifiedTooltip {
|
||||
if (settingsButton != null) {
|
||||
val tooltip = constructToolTip(project)
|
||||
PyCommunityUnifiedPromoFusCollector.TooltipShown.log()
|
||||
// TODO won't show properly in the corner :(
|
||||
tooltip.show(settingsButton, GotItTooltip.BOTTOM_LEFT)
|
||||
tooltip.show(settingsButton.rootPane.layeredPane) { pane, _ ->
|
||||
SwingUtilities.convertPoint(settingsButton, Point(0, settingsButton.height), pane)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user