BF [ 1807917 ] Layout positioning issue with m_maxHeightSinceNewLine

http://sourceforge.net/tracker/index.php?func=detail&aid=1807917&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2007-11-05 07:24:13 +00:00
parent eb83efa858
commit 9d8e448faf
1 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,9 @@ import org.compiere.util.*;
* *
* @author Jorg Janke * @author Jorg Janke
* @version $Id: LayoutEngine.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $ * @version $Id: LayoutEngine.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
*
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
* <li>BF [ 1807917 ] Layout positioning issue with m_maxHeightSinceNewLine:
*/ */
public class LayoutEngine implements Pageable, Printable, Doc 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]) if (m_lastHeight[m_area] > m_maxHeightSinceNewLine[m_area])
m_maxHeightSinceNewLine[m_area] = m_lastHeight[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 item
} // for every row } // for every row
@ -1096,9 +1102,9 @@ public class LayoutEngine implements Pageable, Printable, Doc
// //
DataEngine de = new DataEngine(format.getLanguage()); DataEngine de = new DataEngine(format.getLanguage());
PrintData includedData = de.getPrintData(data.getCtx(), format, query); PrintData includedData = de.getPrintData(data.getCtx(), format, query);
log.fine(includedData.toString());
if (includedData == null) if (includedData == null)
return null; return null;
log.fine(includedData.toString());
// //
element = layoutTable (format, includedData, item.getXSpace()); element = layoutTable (format, includedData, item.getXSpace());
// handle multi page tables // handle multi page tables