Navigation Menu

Skip to content

Commit

Permalink
Fixed bug 457088.
Browse files Browse the repository at this point in the history
For the row height specified as 100%, it is wrong calcualted to 0.


Signed-off-by: sguan <sguan@actuate.com>
  • Loading branch information
sguan-actuate committed Jan 8, 2015
1 parent 295cd3e commit 921def5
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -19,6 +19,7 @@
import org.eclipse.birt.report.engine.content.IRowContent;
import org.eclipse.birt.report.engine.content.IStyle;
import org.eclipse.birt.report.engine.content.ITableContent;
import org.eclipse.birt.report.engine.ir.DimensionType;
import org.eclipse.birt.report.engine.layout.pdf.cache.CursorableList;
import org.eclipse.birt.report.engine.nLayout.area.impl.TableArea.TableLayoutInfo;
import org.eclipse.birt.report.engine.nLayout.area.style.BorderInfo;
Expand Down Expand Up @@ -791,7 +792,13 @@ protected boolean isSpecifiedHeight( RowArea area )
IContent content = (IContent) area.getContent( );
if ( content != null )
{
return content.getHeight( ) != null;
DimensionType cHeight = content.getHeight( );
if ( cHeight != null
&& !cHeight.getUnits( ).equals(
DimensionType.UNITS_PERCENTAGE ) )
{
return true;
}
}
return false;
}
Expand Down

0 comments on commit 921def5

Please sign in to comment.