We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ideas :
The text was updated successfully, but these errors were encountered:
private fun adjustPosition( componentPoint: Point, flamegraphView: FlamegraphView<*>, tooltipComponent: JComponent, hoveredFrameRectangle: Rectangle ) { val gapBetweenPopupAndFrame = JBUI.scale(6) val height = tooltipComponent.preferredSize.height if (flamegraphView.mode == FlamegraphView.Mode.FLAMEGRAPH) { if (componentPoint.y + height > flamegraphView.component.visibleRect.height) { componentPoint.y -= height + gapBetweenPopupAndFrame } else { componentPoint.y += hoveredFrameRectangle.height + gapBetweenPopupAndFrame } } else { componentPoint.y -= height + gapBetweenPopupAndFrame } val width = tooltipComponent.preferredSize.width if (componentPoint.x + width > flamegraphView.component.visibleRect.width) { componentPoint.x = flamegraphView.component.visibleRect.width - width } else { componentPoint.x += gapBetweenPopupAndFrame } }
Look at JPopup instead ?
JPopup
Sorry, something went wrong.
No branches or pull requests
Ideas :
The text was updated successfully, but these errors were encountered: