mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-09 22:26:18 +02:00
ace2_inner: fix first line number position
Preparatory work for introducing colibris skin
This commit is contained in:
parent
4115f792e4
commit
23eb1701ed
@ -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…
x
Reference in New Issue
Block a user