Archived:Avoiding partially visible lines in an editor
Avoiding partially visible lines in an editor
If the height of an editor is not defined in exact multiples of line height, the bottom line may only be partially visible. Sometimes, it may not be feasible to calculate the editor size correctly if the content can change dynamically - for example, a picture is inserted or different font sizes are used. This can be solved by calling RestrictScrollToTopsOfLines() with EFalse:
iEditor->TextLayout()->RestrictScrollToTopsOfLines( EFalse );
RestrictScrollToTopsOfLines() should be used with caution, as in certain situations it may cause the cursor to scroll off the screen.