×
Namespaces

Variants
Actions
Revision as of 10:09, 14 June 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:Avoiding partially visible lines in an editor

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.


Article Metadata
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 2 (25 Apr 2007)
Last edited: hamishwillee (14 Jun 2012)

Overview

Avoiding partially visible lines in an editor

Description

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 );
Note:
RestrictScrollToTopsOfLines() should be used with caution, as in certain situations it may cause the cursor to scroll off the screen.

This page was last modified on 14 June 2012, at 10:09.
44 page views in the last 30 days.
×