From cba3fd3b26f5b1d7ed26c79b72aa3440b297ad04 Mon Sep 17 00:00:00 2001 From: lee-hong <33650992+lee-hong@users.noreply.github.com> Date: Wed, 9 May 2018 21:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E4=B8=AD=E8=A1=8C=E9=AB=98=E5=BA=A6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E7=9A=84pdf=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=95=B0=E6=8D=AE=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/bstek/ureport/model/Cell.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ureport2-core/src/main/java/com/bstek/ureport/model/Cell.java b/ureport2-core/src/main/java/com/bstek/ureport/model/Cell.java index 471a81b..43e47df 100644 --- a/ureport2-core/src/main/java/com/bstek/ureport/model/Cell.java +++ b/ureport2-core/src/main/java/com/bstek/ureport/model/Cell.java @@ -650,7 +650,10 @@ public class Cell implements ReportCell { int dif=totalLineHeight-totalRowHeight; if(dif>0){ int rowHeight=row.getHeight(); - row.setRealHeight(rowHeight+dif); + int newRowHeight = rowHeight+dif; + if(row.getRealHeight()< newRowHeight){ + row.setRealHeight(newRowHeight); + } } }