Unverified Commit eb9875ee authored by John McLear's avatar John McLear Committed by GitHub
Browse files

Merge pull request #3352 from ldidry/fix-line-numbers

Fix line number display when plugin add padding-top (like ep_page_view)
parents 074c9c6d b0da9a57
...@@ -5404,8 +5404,8 @@ function Ace2Inner(){ ...@@ -5404,8 +5404,8 @@ function Ace2Inner(){
// height is taken to be the top offset of the next line. If we // height is taken to be the top offset of the next line. If we
// didn't do this special case, we would miss out on any top margin // didn't do this special case, we would miss out on any top margin
// included on the first line. The default stylesheet doesn't add // included on the first line. The default stylesheet doesn't add
// extra margins, but plugins might. // extra margins/padding, but plugins might.
h = b.nextSibling.offsetTop; h = b.nextSibling.offsetTop - window.getComputedStyle(doc.body).getPropertyValue("padding-top");
} else { } else {
h = b.nextSibling.offsetTop - b.offsetTop; h = b.nextSibling.offsetTop - b.offsetTop;
} }
......
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