textrendering/textformatting/tbox/LAYEMU.CPP
branchCompilerCompatibility
changeset 10 1d3cadb74b56
parent 5 e96e8a131979
child 11 6971d1c87c9a
equal deleted inserted replaced
7:3969f087709d 10:1d3cadb74b56
   680 to the top of the visible region.
   680 to the top of the visible region.
   681 
   681 
   682 @return The y coordinate of the bottom of the last formatted line. */
   682 @return The y coordinate of the bottom of the last formatted line. */
   683 EXPORT_C TInt CTextLayout::YBottomLastFormattedLine() const
   683 EXPORT_C TInt CTextLayout::YBottomLastFormattedLine() const
   684 	{
   684 	{
   685 	return iText->LayoutHeight() - iBandTop;
   685 	return Max(0, iText->LayoutHeight() - iBandTop );
   686 	}
   686 	}
   687 
   687 
   688 /** Returns the height in pixels of the formatted text.
   688 /** Returns the height in pixels of the formatted text.
   689 
   689 
   690 @return The height in pixels of all the formatted text. */
   690 @return The height in pixels of all the formatted text. */