From 374255885d75228c4aea9b83317de1b2cee35d0d Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Mon, 23 Sep 2024 23:55:24 +0800 Subject: [PATCH] Update clipping of the bototm row of the text box --- project/src/common/TextField.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/common/TextField.cpp b/project/src/common/TextField.cpp index e1c949632..7b0b11268 100644 --- a/project/src/common/TextField.cpp +++ b/project/src/common/TextField.cpp @@ -1887,9 +1887,9 @@ void TextField::Render( const RenderTarget &inTarget, const RenderState &inState { while(line= 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;