mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Fix numbering line when plugin add padding-top (like ep_page_view)
This commit is contained in:
parent
cb856ea624
commit
b0da9a579d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue