Skip to content

Param helper hover getting cut off at bottom #105422

Closed

Description

Activity

  1. added
    bug
    editor-hover
    on Aug 26, 2020
  2. added this to the Backlog milestone on Aug 26, 2020
  3. mjbvz commented on Aug 26, 2020

    @mjbvz
    Contributor

    Do you believe this changed recently, such as with the electron 9 update?

  4. Tyriar commented on Aug 26, 2020

    @Tyriar
    ContributorAuthor

    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?

  5. added
    help wanted
    on Oct 3, 2020
  6. chenjigeng commented on Dec 7, 2020

    @chenjigeng
    Contributor

    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
    image
    The DOM structure after render
    image

    I want to see if I can fix this problem, can you give me some advice. Daniel Imms (@Tyriar) Matt Bierner (@mjbvz)

  7. chenjigeng commented on Dec 7, 2020

    @chenjigeng
    Contributor

    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
    image

  8. chenjigeng commented on Dec 7, 2020

    @chenjigeng
    Contributor

    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)

  9. added
    unreleased
    on Dec 8, 2020
  10. added
    insiders-released
    and removed
    unreleased
    on Dec 11, 2020
  11. locked and limited conversation to collaborators on Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugeditor-hoverhelp wantedinsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions