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)
Space between multiple elements in a grid Cell
Robert Ienei
<p>Hi,</p>
<p> </p>
<p>I've tried to make a Birt Design where i have a grid. in a grid cell i need to insert two Label elements. It is working fine, they are on the same line, but it is no space between the two labels.</p>
<p> </p>
<p>I found the following documentation: "<span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;">When items appear in-line, an implied space separates the items. That is, if a grid has two labels "Sample" and "Labels", and they are marked as in-line, the resulting display is "Sample Label", not "SampleLabel".</span>"</p>
<p> </p>
<p>In my case it does not work.</p>
<p> </p>
<p>In BIRT Report Viewer from Eclipse the 2 Labels are separated with a space, but when i print from BIRT Report Viewer in PDF, in PDF the two labels appear without the space between.</p>
<p>I have Eclipse Kepler + Birt 4.3.2</p>
<p> </p>
<p>Where can be the problem(space between labels not appears in Pdf)?</p>
<p>(I need a clean way if possible. I don't really like the solution with label1+ " "+label2)</p>
<p> </p>
<p>Thanks,</p>
<p>Robert</p>
<p> </p>
<p>
Find more posts tagged with
Comments
GLO_FR
<p>Hi,</p>
<p> </p>
<p>it seems to be a viewer issue.</p>
<p>I have tested it with different viewers (OS Viewer, BIRT Viewer ToolKit, BIRT Viewer Commercial) and it works fine with the two last and not with the eclipse/BIRT OS viewer.</p>
<p>Try to DL the BIRT Viewer ToolKit.</p>
Robert Ienei
<p>Thank you for the test. </p>
<p> </p>
<p>What happens when in case it works(picture 1), you tries to print out the result in Pdf? </p>
<p> </p>
<p>In BIRT Report viewer works for me too, but in Pdf not.</p>
<p> </p>
<p>Thanks,</p>
<p>Robert</p>
GLO_FR
<p>Hi,</p>
<p> </p>
<p>BTW, both export in PDF look good</p>
<p> </p>
Robert Ienei
<p>Sorry, but the Pdfs are not how we expect them. There should be a space between the two Labels. </p>
<p> </p>
<p><a data-ipb='nomediaparse' href='
https://www.eclipse.org/birt/phoenix/ref/rom/elements/Cell.html'>https://www.eclipse.org/birt/phoenix/ref/rom/elements/Cell.html</a></p>
;
<p> </p>
Description
<div style="margin-left:.5in;color:rgb(0,0,0);font-family:sans-serif;font-size:13px;">
<p> </p>
<p>A cell can contain zero, one or more of the following items. The size of the item is defined to be the size of the cell. The (x, y) properties of the item are ignored. The normal case is one item. When a single item appears in a cell, the items within a row are aligned along the text baseline. If multiple items appear within a cell, alignment is undefined. Some rendering environments may baseline-align the first line, others may not.</p>
<p>When multiple items appear within a cell, each item acts a bit like a section: a like break occurs after each item, causing the items to be vertically stacked. The user can set the "display" property of the items to create an in-line layout: items flow from one line to the next with like breaks imposed by the cell width. In-line layout applies to the following only:</p>
<ul><li>Text (text is treated as a string of text, not a box)</li>
<li>Label</li>
<li>Data item</li>
<li>Image</li>
</ul><p>When items appear in-line, an implied space separates the items. That is, if a grid has two labels "Sample" and "Labels", and they are marked as in-line, the resulting display is "Sample Label", not "SampleLabel".</p>
</div>
GLO_FR
<p>Uppsss, sorry, my fault.</p>
<p>If you want to keep the space between your two elements, you can either use a grid or put a margin.</p>
<p>Here is a PDF with a 4 points margin on the right element</p>