Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Code hints disappear near right edge of editor #3391

Open
jasonsanjose opened this issue Apr 9, 2013 · 8 comments
Open

Code hints disappear near right edge of editor #3391

jasonsanjose opened this issue Apr 9, 2013 · 8 comments

Comments

@jasonsanjose
Copy link
Member

  1. Open a javascript file with lines wide enough (or window narrow enough) to type near the right window border
  2. Explicitly open code hints near the window's right edge to show all identifiers in scope
  3. Begin typing a valid identifier, one letter at a time

Actual: Code hints will alternate hiding and showing
Expected: Code hints should stay open

@ghost ghost assigned njx Apr 10, 2013
@njx
Copy link
Contributor

njx commented Apr 10, 2013

Reviewed. To me, medium priority, no milestone. I think what's happening is that we get a horizontal scroll event asynchronously after the menu is shown, and we dismiss popups on scroll events.

@dangoor
Copy link
Contributor

dangoor commented May 28, 2013

Is this still an issue? There's been a lot of work done on code hints. I just tried this... turned off word wrap, typed near right edge of screen to get code hints. All was well.

@njx
Copy link
Contributor

njx commented Jun 12, 2013

Still reproduces easily for me--as soon as it starts scrolling, the code hints show and then hide alternately.

@lkcampbell
Copy link
Contributor

@njx, ideally, we could fix this issue by distinguishing between user scroll events and programmatic scroll events. All menus could be closed if the user initiates the scroll, else adjust the position of the menu as appropriate for programmatic scroll events.

Unfortunately, according to this posting, the information of how a scroll event was initiated is not directly available. The proposed solution seems a bit unwieldy to me. I suppose, for example, we could set a userScroll flag to true on scroll bar events, and to false on the Document change event, but it seems a bit complex.

Other than that, I am a bit stumped on how to progress further on this issue.

@dangoor
Copy link
Contributor

dangoor commented Jan 30, 2014

I think this is working now.

@lkcampbell
Copy link
Contributor

@dangoor I still see it on the current dev build. As long as we are closing all popups on the scroll event and we type in the editor in such a way that it automatically scrolls horizontally, we are going to have this problem.

@RaymondLim
Copy link
Contributor

Yes, I can still see the issue only if Word Wrap is off.

@njx njx removed their assignment Jul 12, 2014
@njx
Copy link
Contributor

njx commented Jul 12, 2014

To @dangoor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants