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

Added fix for JS Hints, fixes Issue #10281 #10588

Closed
wants to merge 2 commits into from

Conversation

noragrossman
Copy link

Should fix Issue #1028

if (top < 0) {
// Get the top of the editable document
var cm = session.editor._codeMirror;
var localTop = cm.charCoords({line: 0, ch: 0}).top;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't be correct if the document has been scrolled.

What you want is to compare top to the top bounds of the editor, which is probably something like $editorHolder.offset().top. That ignores split views and looks at the bounds of the entire "main view" content area, but the z-ordering probably works out such that it's ok to overlap a neighboring split-view pane... worth double checking with testing though.

@zaggino
Copy link
Contributor

zaggino commented Aug 27, 2016

Not replicating in master anymore, closing without merge.

image

@zaggino zaggino closed this Aug 27, 2016
@zaggino zaggino reopened this Aug 27, 2016
@marcelgerber
Copy link
Contributor

Did you mean to reopen this PR?

@zaggino
Copy link
Contributor

zaggino commented Aug 27, 2016

It was meant to fix problem on Linux as related issue states, need to boot up linux and check there. I tested windows...

@zaggino
Copy link
Contributor

zaggino commented Aug 28, 2016

Confirmed fixed in latest Linux too.

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

Successfully merging this pull request may close these issues.

JS Code Hints parameter tips hidden beneath non-native menu bar
4 participants