Commit 22112c48 authored by Raine Makelainen's avatar Raine Makelainen

Add line height to the chrome messages

parent 5fa576a5
......@@ -889,6 +889,10 @@ SelectionPrototype.prototype = {
}
}
// Store end heights
seldata.start.height = rects[0].bottom - rects[0].top;
seldata.end.height = rects[rects.length-1].bottom - rects[rects.length-1].top;
// Store the client rect of selection
let r = aRange.getBoundingClientRect();
seldata.selection.left = r.left + this._contentOffset.x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment