From 9d8e448faf33d67c1f0dbb70c485e168750f8950 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 5 Nov 2007 07:24:13 +0000 Subject: [PATCH] BF [ 1807917 ] Layout positioning issue with m_maxHeightSinceNewLine http://sourceforge.net/tracker/index.php?func=detail&aid=1807917&group_id=176962&atid=879332 --- base/src/org/compiere/print/layout/LayoutEngine.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/print/layout/LayoutEngine.java b/base/src/org/compiere/print/layout/LayoutEngine.java index 9872f50736..1a5f6da66e 100644 --- a/base/src/org/compiere/print/layout/LayoutEngine.java +++ b/base/src/org/compiere/print/layout/LayoutEngine.java @@ -38,6 +38,9 @@ import org.compiere.util.*; * * @author Jorg Janke * @version $Id: LayoutEngine.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $ + * + * @author Teo Sarca, SC ARHIPAC SERVICE SRL + *
  • BF [ 1807917 ] Layout positioning issue with m_maxHeightSinceNewLine: */ public class LayoutEngine implements Pageable, Printable, Doc { @@ -1032,6 +1035,9 @@ public class LayoutEngine implements Pageable, Printable, Doc // if (m_lastHeight[m_area] > m_maxHeightSinceNewLine[m_area]) m_maxHeightSinceNewLine[m_area] = m_lastHeight[m_area]; + // Reset maxHeightSinceNewLine if we have an absolute position - teo_sarca BF [ 1807917 ] + if (!item.isRelativePosition()) + m_maxHeightSinceNewLine[m_area] = m_lastHeight[m_area]; } // for every item } // for every row @@ -1096,9 +1102,9 @@ public class LayoutEngine implements Pageable, Printable, Doc // DataEngine de = new DataEngine(format.getLanguage()); PrintData includedData = de.getPrintData(data.getCtx(), format, query); - log.fine(includedData.toString()); if (includedData == null) return null; + log.fine(includedData.toString()); // element = layoutTable (format, includedData, item.getXSpace()); // handle multi page tables