You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Param helper hover getting cut off at bottom #105422
bugIssue identified by VS Code Team member as probable bugeditor-hoverEditor mouse hoverhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
I wouldn't have expected that, I'm also pretty sure my hover changes didn't touch any styles that could affect this either. Perhaps it's related to some top/bottom padding not being factored into something?
I think this problem is due to the fact that the sample code was not rendered in markdown format when calculating the height, so the height was relatively small.
The DOM structure at the height of the calculation The DOM structure after render
I think it's because codeBlock generation is an asynchronous process.Before the result is returned, a pure code text is set synchronously which results in the outer layer getting the wrong height
I found that the markdownRenderer supports the asyncRenderCallback option, so we can just pass this option and call scanDomNode again after the asynchronous rendering.
I try and it work. Please check this PR Matt Bierner (@mjbvz)Daniel Imms (@Tyriar)
bugIssue identified by VS Code Team member as probable bugeditor-hoverEditor mouse hoverhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Activity
mjbvz commentedon Aug 26, 2020
Do you believe this changed recently, such as with the electron 9 update?
Tyriar commentedon Aug 26, 2020
I wouldn't have expected that, I'm also pretty sure my hover changes didn't touch any styles that could affect this either. Perhaps it's related to some top/bottom padding not being factored into something?
chenjigeng commentedon Dec 7, 2020
I think this problem is due to the fact that the sample code was not rendered in markdown format when calculating the height, so the height was relatively small.
The DOM structure at the height of the calculation


The DOM structure after render
I want to see if I can fix this problem, can you give me some advice. Daniel Imms (@Tyriar) Matt Bierner (@mjbvz)
chenjigeng commentedon Dec 7, 2020
I think it's because codeBlock generation is an asynchronous process.Before the result is returned, a pure code text is set synchronously which results in the outer layer getting the wrong height

chenjigeng commentedon Dec 7, 2020
I found that the markdownRenderer supports the asyncRenderCallback option, so we can just pass this option and call scanDomNode again after the asynchronous rendering.
I try and it work. Please check this PR Matt Bierner (@mjbvz) Daniel Imms (@Tyriar)