ace2_inner: fix first line number position

Preparatory work for introducing colibris skin
This commit is contained in:
Sebastian Castro 2018-11-08 21:55:58 +01:00
parent 4115f792e4
commit 23eb1701ed

View file

@ -5404,7 +5404,7 @@ function Ace2Inner(){
// 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
// extra margins/padding, but plugins might.
h = b.nextSibling.offsetTop - window.getComputedStyle(doc.body).getPropertyValue("padding-top");
h = b.nextSibling.offsetTop - parseInt(window.getComputedStyle(doc.body).getPropertyValue("padding-top").split('px')[0]);
} else {
h = b.nextSibling.offsetTop - b.offsetTop;
}