ace2_inner: fix first line number position
Preparatory work for introducing colibris skin
This commit is contained in:
parent
4115f792e4
commit
23eb1701ed
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue