Skip to content

Commit

Permalink
Update clipping of the bototm row of the text box
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Sep 23, 2024
1 parent 16f8a10 commit 3742558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/src/common/TextField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1887,9 +1887,9 @@ void TextField::Render( const RenderTarget &inTarget, const RenderState &inState
{
while(line<last_line && mLines[line+1].mChar0 >= cid)
line++;
if (pos.y>fieldHeight)
break;
double lineY = pos.y + mLines[line].mMetrics.ascent;
if (lineY>fieldHeight)
break;
if (pos.y>=GAP)
{
pos.y = lineY;
Expand Down

0 comments on commit 3742558

Please sign in to comment.