Adobe Livecycle Designer row height issue
I have table within another table and I need to adjust Table Row Height relatively to the row height of main table.
According to documentation I've got a row height of the main table using:
var mainRowHeight = xfa.layout.h(parent.parent.parent, "in");
after that I made some calculations with this value and trying to adjust element height using calculated value:
var calculatedValue = mainRowHeight / 2;//just for example
this.h = calculatedValue + "in";
and nothing happens. However if I just use any other variable height is being adjusted without any issue:
var newHeight = 1.5;
this.h = newHeight + "in"; //this way works perfectly
I tried to convert it to string and to float and vice versa and nothing helps.
how can I adjust value returned from xfa.layout.h() in order to use it for setting height of another element?