diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-02-05 03:50:24 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-02-05 03:50:24 +0100 |
commit | 81b20c4de67bad271f848eb2dd492c9da0b43678 (patch) | |
tree | a7a96d7a456f76a19f594d6bb5b5b0fcfec4ae44 /infrastructure | |
parent | d79b717f5314f03a7cb2516f014ec7eb41fa3189 (diff) | |
download | etherpad-81b20c4de67bad271f848eb2dd492c9da0b43678.tar.gz etherpad-81b20c4de67bad271f848eb2dd492c9da0b43678.tar.xz etherpad-81b20c4de67bad271f848eb2dd492c9da0b43678.zip |
fixed linenumber height if first line in source has a margin
Diffstat (limited to 'infrastructure')
-rw-r--r-- | infrastructure/ace/www/ace2_inner.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/infrastructure/ace/www/ace2_inner.js b/infrastructure/ace/www/ace2_inner.js index 6723cef..a6233d3 100644 --- a/infrastructure/ace/www/ace2_inner.js +++ b/infrastructure/ace/www/ace2_inner.js @@ -4778,6 +4778,11 @@ function OUTER(gscope) { a = a.nextSibling; b = b.nextSibling; } + + // fix if first line has margin (f.e. h1 in first line) + sideDivInner.firstChild.style.marginTop = + (doc.body.firstChild.offsetTop - sideDivInner.firstChild.offsetTop + + parseInt(sideDivInner.firstChild.style.marginTop + "0")) + "px"; } } |