Skip to main content



      Home
Home » Archived » BIRT » Calculate the exact height of a cell on birt(how can match two height of two different dynamic table )
Calculate the exact height of a cell on birt [message #1690778] Tue, 31 March 2015 04:32
Eclipse UserFriend
i try to get the exact height of a cell to match the height of two table . so i just get in (on create ) of ever dynamic text (or column binding) the height and add sum it in variable page .
so i get the top and bottom margin,padding + the font size.
Code Description:
margin=parseInt(this.getStyle().marginBottom,10)+parseInt(this.getStyle().marginTop, 10);
padding=parseInt(this.getStyle().paddingBottom,10)+parseInt(this.getStyle().paddingTop, 10)
if(margin!==margin) margin=0;
if(padding!==padding) padding=0;
size=parseInt(this.getStyle().fontSize, 10)+padding+margin;
height=this.getValue().split("\r\n|\r|\n").length*size;


but is like i forget some think (may be there 's a space between evry row or something like that ) because the heigh don't match .

can anyone help me Pleas.

Previous Topic:Adding -select all- option to the parameter values list
Next Topic:BIRT Report Development
Goto Forum:
  


Current Time: Fri Mar 28 03:10:22 EDT 2025

Powered by FUDForum. Page generated in 0.03305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top