equal
deleted
inserted
replaced
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. */ |