Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
get height element
thang
<p>Hi,</p>
<p>Is there any way to get height of element select by javascript ?</p>
<p>i try </p>
<p>if (this.height == null) {<br>
java.lang.System.out.println("null");<br>
} else {<br>
java.lang.System.out.println(this.height);<br>
}</p>
<p> </p>
<p><span style="color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">but </span><em>this.height</em><span style="color:rgb(0,0,0);font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"> alway returns </span><em>null, </em> Is there any way to get this element's height ?</p>
Find more posts tagged with
Comments
pricher
<p>Hi,</p>
<p> </p>
<p>Simply put, <span style="font-family:'courier new', courier, monospace;">this.height</span> will return <span style="font-family:'courier new', courier, monospace;">null </span>when <span style="font-family:'courier new', courier, monospace;">height </span>has not been set in the design, which is done at the row level in a grid or a table.</p>
<p> </p>
<p>Hope this helps,</p>
<p> </p>
<p>P.</p>
micajblock
<p>That being said what are you trying to accomplish?</p>
thang
<p>Hi, Sorry for my late respond</p>
<p> </p>
<p>i have a report and want to fit it in 1/2 A4 page, so there are 2 problem :</p>
<p> - Dataset have more than 1 result.</p>
<p> - Some text is too long so need 2 line to render it.</p>
<p>My sollution is get all height of row in table then put 1 detail row in the end with height = 1/2 A4 height - total height row.</p>
<p>But i cant get height of rows with code. <span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> Is there any way to get this row's height ?</span></p>
zbignevas
<p>Maybe this case was been solved? Or there are other alternatives?</p>
micajblock
<p>If you set the layout preference (general property of the root of the report) to fixed layout and set the master page size to A4 BIRT will do the work for you.</p>