How can I get line offset in pixels just like with cm.heightAtLine
?
Call lineBlockAt
with a position inside the line.
I have the same problem, does anyone have any advice?
I want the same effect as the following, how should I achieve it in CM6
editor.heightAtLine(child.position.start.line - 1, “local”);
Something like view.
lineBlockAt
(pos).top
.