equal
deleted
inserted
replaced
2246 TRect lineRect = ctrl->IsReadOnly() ? ctrl->Rect() : |
2246 TRect lineRect = ctrl->IsReadOnly() ? ctrl->Rect() : |
2247 ctrl->CurrentLineRect(); |
2247 ctrl->CurrentLineRect(); |
2248 |
2248 |
2249 if ( lineRect.Height() ) |
2249 if ( lineRect.Height() ) |
2250 { |
2250 { |
2251 if ( lineRect.iBr.iY > iViewRect.Height() ) |
2251 if (lineRect.Height() >= iViewRect.Height()) |
2252 { |
2252 { |
2253 // the view must be scrolled up. |
2253 // the view must be scrolled up. |
2254 delta = iViewRect.Height() - lineRect.iBr.iY; |
2254 delta = iViewRect.Height() - lineRect.iBr.iY; |
2255 } |
2255 } |
2256 else if ( lineRect.iTl.iY < 0 && |
2256 else if ( lineRect.iTl.iY < 0 && |