Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I edit a method in a class, the cursor is not visible #102

Closed
jayfoad opened this issue Feb 23, 2017 · 1 comment
Closed

When I edit a method in a class, the cursor is not visible #102

jayfoad opened this issue Feb 23, 2017 · 1 comment

Comments

@jayfoad
Copy link
Contributor

jayfoad commented Feb 23, 2017

When I do )ed ⎕se.SALTUtils.isDir, an editor pops up showing the SALTUtils class. The cursor is on line 1532, correctly, but the window is scrolled so that only lines 1465-1519 are visible.

IDE:
Version: 4.0.2646
Platform: Linux x86_64
Date: 2017-02-17 09:10:54 +0100
Git commit: d7ff624
Preferences:{
"otherExe":"apl"
}

Interpreter:
Version: 16.0.29281
Platform: Linux-64
Edition: Unicode/64
Date: Feb 23 2017 at 09:45:40

@jayfoad
Copy link
Contributor Author

jayfoad commented Feb 23, 2017

I think the problem is in Ed.open():

cm.setCursor(line,col);cm.scrollIntoView(null,ed.dom.clientHeight/2)

At this point:
ed.dom.clientHeight is 961 (the size the editor will have)
cm.getScrollInfo().clientHeight is only 284 (I guess because it hasn't yet been fully laid out)

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

No branches or pull requests

1 participant