<p></p>
<p>What this code does:</p>
<p>When adding a line in the compiler tab,<br>
A: get current scroll location.<br>
B: get max scroll distance.<br>
C: get line height.<br>
D: compare A and (B-C).<br>
E: if A > (B-C) then compiler tab is going to be scrolled.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2829#issuecomment-865038018">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3KBKLEEGE7IMT6MXTTT45YBANCNFSM4677OLNQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYVAGUWMGOAPXYNNYTTT45YBA5CNFSM4677OLN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGOHW5QQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2829#issuecomment-865038018",
"url": "https://github.com/geany/geany/pull/2829#issuecomment-865038018",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>