Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348057

Summary: "display: inline-block" in PDF output
Product: z_Archived Reporter: Jan Inowolski <j.inowolski>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: NEW --- QA Contact: Xiaoying Gu <bluesoldier>
Severity: enhancement    
Priority: P3 CC: bluesoldier, yChen
Version: 2.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
use inline table to simulate inline-block none

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.