cancel
Showing results for 
Search instead for 
Did you mean: 

Height of table inside a table

0 Kudos

My form has a table inside a table cell. I want the inner table to have the same height as the cell it is in (so vertical lines of the inner table are as high as the cell). I'm trying to arrange this with Javascript but no luck so far.

I'm trying

this.minH = <ref to cell>.h;

in various events (e.g. form:layout) but it does nothing.

Any ideas?

Tia!

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

From: LiveCycle Designer Scripting Basics PDF guide, get it for yourself.

The following script is for the Expand button:

var newHeight = xfa.layout.h(TextField1, "in");

TextField2.h = newHeight + "in";

Cheers Otto

0 Kudos

Thanks, that brought me a little closer.

The remaining problem is: what event to use. In initialise and form:ready I can set the new height but not read the existing height. In layout:ready I can read the existing height but not set the new one.

Aliaksandr
Active Participant
0 Kudos

Use docReady event

Former Member
0 Kudos

Mate,

Form ready is ran first to bind data.

then the layout ready to present data.

all the script refering to element height etc are should be written in layout ready event.

Cheers,

Sai

Answers (0)