Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348057 - "display: inline-block" in PDF output
Summary: "display: inline-block" in PDF output
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.2   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 06:31 EDT by Jan Inowolski CLA
Modified: 2011-06-07 05:08 EDT (History)
2 users (show)

See Also:


Attachments
use inline table to simulate inline-block (4.51 KB, application/xml)
2011-06-07 02:27 EDT, Yu Chen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Inowolski CLA 2011-06-02 06:31:28 EDT
Some of my reports have a requirement, that it should contain text filled in a dotted field within text (dont ask why, lawyers are strange creatures and sometimes reject document which differs from pattern...)

I would manage this with css style in html content:
"Hereby foo <span style="display: inline-block; border-bottom: 1pt dotted black; width: 100pt; text-align: center">bar</span> foo."

However, PDF emmiter (in 2.6.2) doesn't support "display: inline-block" yet. "inline" element can have width, but doesn't center text. "block" element can center text, but isn't inline.

Would you add support for "display: inline-block" style in next BIRT release, for PDF output? Or, at least, implement "text-align: center" style for html  "inline" elements.
Comment 1 Yu Chen CLA 2011-06-07 02:27:17 EDT
Created attachment 197476 [details]
use inline table to simulate inline-block
Comment 2 Yu Chen CLA 2011-06-07 02:29:45 EDT
PDF layout does not support inline-block yet.
As a workaround, you may try inline table. The attachment is a sample.
We will schedule inline-block for PDF layout.
Comment 3 Jan Inowolski CLA 2011-06-07 05:08:56 EDT
Thanks a lot! Workaround works great, even for line-wrapped text.

And nice to hear that inline-block will be implemented.