Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
100% Height attribute (Table detail row): Content is not displayed
Criz
<p>Hello guys,</p>
<p> </p>
<p>I'm experiencing different behaviors between BIRT422 and BIRT 442.</p>
<p>When 100% is set in a Table Detail Row height, its content is not displayed. It is in BIRT 422 instead.</p>
<p> </p>
<p>Replication Steps:</p>
<ul><li>Downloaded the eclipse luna and installed BIRT</li>
<li>Created a table (3x1)</li>
<li>Bound the table to a Classic Model Dataset</li>
<li>Set the table detail height row to 100%</li>
<li>Added an "hello world" label to the detail row</li>
</ul><p>Despite the 100% value it's meaningless in my example and other solutions could be good workarounds, I'd be still interested to understand what causes the difference and be directed in the java classes that issue the table detail row heights (a known bug? or a bug fix?). That would be really helpful!</p>
<p> </p>
<p>Thank you very much,</p>
<p>Cris</p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
Clement Wong
<p>I tried various versions (OS BIRT 4.2.1, 4.4.2, 4.5.0 and commercial BIRT iHub 3.1). The only version I see the PDF export problem is in OS BIRT 4.4.2.</p>
<p> </p>
<p>Are you able to use BIRT 4.5.0?</p>
<p> </p>
<p>My guess is it was fixed in StyleProperties.java under org/eclipse/birt/report/engine/layout/pdf/util:</p>
<p> </p>
<p><a data-ipb='nomediaparse' href='
https://github.com/eclipse/birt/commit/f933a137df64c8bdd8d771f068463b4def3adbc4'>https://github.com/eclipse/birt/commit/f933a137df64c8bdd8d771f068463b4def3adbc4</a></p>
;
<p> </p>
<p><a data-ipb='nomediaparse' href='
https://github.com/eclipse/birt/blob/f933a137df64c8bdd8d771f068463b4def3adbc4/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/StyleProperties.java'>https://github.com/eclipse/birt/blob/f933a137df64c8bdd8d771f068463b4def3adbc4/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/StyleProperties.java</a></p>
;
Criz
<p>Thanks Clement for your quick answer and the time dedicated to me,</p>
<p> </p>
<p>In my code row 74 is correct, but not row 91. <a data-ipb='nomediaparse' href='
https://github.com/eclipse/birt/commit/f933a137df64c8bdd8d771f068463b4def3adbc4'>https://github.com/eclipse/birt/commit/f933a137df64c8bdd8d771f068463b4def3adbc4</a>
. </p>
<p>However that unfortunately didn't solve the reported bug. The responsible looks to be <em>org.eclipse.birt.report.engine.nLayout.area.impl.TableLayout.updateRow(RowArea, boolean)</em>: commenting "<em>&& !isSpecifiedHeight" </em>the content is generated as expected</p>
<pre class="_prettyXprint _lang- _linenums:910">
if ( cell != null )
{
if ( cell.getRowSpan( ) == 1 )
{
if ( !isFixedLayout || sheight == 0 )//&& !isSpecifiedHeight(rowArea))
{
height = Math.max( height, cell.getHeight( ) );
}
}
i = i + cell.getColSpan( ) - 1;
}
</pre>
<p>Best Regards,</p>
<p>Cris</p>