Community
Participate
Working Groups
Build Identifier: 2.5.2 1. The line height property, which allows us to reduce line spacing between two lines, does not work for PDF report outputs. The same works fine for HTML outputs. 2. Vertical alignment also not working the way it is supposed to be. Does not align the items as we set it in design for PDF outputs, but works properly for HTML outputs. Reproducible: Always Steps to Reproduce: 1.create a new report with some table, and data elements in it. 2.Set the line height property for text in advanced property, some 2-3 pts more than the font size set for the element, remove all padding set for row, columns and elements. Set vertical alignment to top. 3.View report as PDF
Would you please attach a sample report?
Created attachment 198245 [details] buggy css-report (only worked with my.css) Report contained the unexpected css-behavior. * the grid ignore vertical-align in design- and preview mode * the table-header ignore vertical-align only in preview-mode
Created attachment 198246 [details] corresponding css-file to rptdesign-file buggy css-report depends on this css-file.
(In reply to comment #2) > Created attachment 198245 [details] > buggy css-report (only worked with my.css) > > Report contained the unexpected css-behavior. > * the grid ignore vertical-align in design- and preview mode > * the table-header ignore vertical-align only in preview-mode valign property is not a css property, so it's not supported in BIRT. For vertial-align doesn't work in HTML with the fixed layout, please see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=271984#c8 For vertical-align doesn't work on .grid issue, since vertical-align property can not be inherit fro parent (http://www.w3schools.com/css/pr_pos_vertical-align.asp), you should set the vertical align on grid cell or grid row.
We fixed this bug in birt 4.4.2. I attached the 2 changed java files in their project. I hope you guys can incorporate this into the source code. Dan
Created attachment 262258 [details] 1 of 2 files for line height fix 1 of 2 files for line height fix
Created attachment 262259 [details] 2 of 2 files for line height fix