How to get the gutter width?

397 views
Skip to first unread message

Daniel Florey

unread,
Aug 16, 2013, 10:30:40 AM8/16/13
to ace-d...@googlegroups.com
Hi,
Is there a way to get the gutter width?
When using the textToScreenCoordinates method the gutter width is not taken into account. Is this correct behaviour?
When scrolling down a larger document the Y position returned by textToScreenCoordinates seems to get an offset of a few pixels. Scrolling up again fixes the issue.

Daniel Florey

unread,
Aug 16, 2013, 10:34:46 AM8/16/13
to ace-d...@googlegroups.com
...or let me ask this way: What is the best way to convert positions (row, columns) to pixel coordinates relative to the editors content panel?

Harutyun Amirjanyan

unread,
Aug 19, 2013, 6:44:19 AM8/19/13
to ace-d...@googlegroups.com
see https://github.com/ajaxorg/ace/blob/master/lib/ace/autocomplete.js#L72-L77
> --
> You received this message because you are subscribed to the Google Groups
> "Ajax.org Cloud9 Editor (Ace)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ace-discuss...@googlegroups.com.
> To post to this group, send email to ace-d...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ace-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.

Daniel Florey

unread,
Aug 19, 2013, 9:53:14 AM8/19/13
to ace-d...@googlegroups.com
Thank you very much!
Reply all
Reply to author
Forward
0 new messages