Calculate the exact height of a cell on birt [message #1690778] |
Tue, 31 March 2015 04:32 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03305 seconds