I'm adapting a third-party spellchecker for which the core programming is excellent and the interface is awful. Getting it nicely into shape, but have come upon this following stumbling point.
Code: Select all
<div class='black p13' style='width:390px; height:235px; background:#f2f2f2; padding:10px; margin-left:10px; border:1px solid #000000; float:left; overflow:auto'>
text goes here
</div>
The text being checked is in the <div> with the erroneous word highlighted. If the text does not fit there are scrollbars, which works just fine,
but if the highlighted word is near the end of the text it is not shown and you have to scroll down to get it into the displayed area.
Generically, is there a way to be sure that a given portion of the text is displayed within that <div>?