aboutsummaryrefslogtreecommitdiffstats
path: root/infrastructure/ace/www/ace2_inner.js
diff options
context:
space:
mode:
Diffstat (limited to 'infrastructure/ace/www/ace2_inner.js')
-rw-r--r--infrastructure/ace/www/ace2_inner.js5
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";
}
}