Skip to content

Bug fix for https/GitHub.com/karpathy/jobs/issues/21#22

Open
valera-g wants to merge 6 commits intokarpathy:masterfrom
valera-g:bug-fix-for-https/github.com/karpathy/jobs/issues/21
Open

Bug fix for https/GitHub.com/karpathy/jobs/issues/21#22
valera-g wants to merge 6 commits intokarpathy:masterfrom
valera-g:bug-fix-for-https/github.com/karpathy/jobs/issues/21

Conversation

@valera-g
Copy link
Copy Markdown

The tooltip is briefly displayed to capture its full size and that captured size is used for vertical positioning.

Fix is zero-touch coded with GitHub Copilot.

Prompt used to generate a fix (original wording preserved):

In this repo is an HTML diagram with data represented as bunch of rectangles. When mouse hover the rectangle, an info card is shown (a popup) and it follows mouse. When the card hits the right edge of the viewport, it jumps to the left of the mouse cursor which is correct behavior. When card hits the bottom of the screen, the part of the card with the lower part with card description is cut off in many cases. Fix it so that the card always constrained in the viewport from the bottom. Do not attempt to fix anything else, but only the positioning when the card hits the bottom edge.

The tooltip is briefly dislplayed to capture its full size and that captured size is used for vertical positioning.

Fix is zero-touch coded with GitHub Copilot.

Prompt used to generate a fix (original wording preserved):

> In this repo is an HTML diagram with data represented as bunch of rectangles. When mouse hover the rectangle, an info card is shown (a popup) and it follows mouse. When the card hits the right edge of the viewport, it jumps to the left of the mouse cursor which is correct behavior. When card hits the bottom of the screen, the part of the card with the lower part with card description is cut off in many cases. Fix it so that the card always constrained in the viewport from the bottom. Do not attempt to fix anything else, but only the positioning when the card hits the bottom edge.
Removed temporary positioning comments for tooltip height measurement.
@valera-g
Copy link
Copy Markdown
Author

fix for #21

@valera-g valera-g closed this Mar 25, 2026
@valera-g valera-g reopened this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant