Hi Joe, right combo of these properties usually means no need to know exact height:
- AutoSizeHeight
- Visible - using expressions
- Computed field - using expressions to make text = "" (empty)
- Slide Up AllAbove vs DirectlyAbove
I right now have DW with 20 columns, static texts, and computed fields float around.
I got it working one object at a time.
Calculate Column Height
Unfortunately there is no direct way to calculate height of control having AutoSizeHeight=true.
However, assume you have just one column that changes height dynamically - and that increase increases row's height.
Now, this expression will tell you increase of height. (TEST: Add as computed field to see value)
long(Describe("Evaluate('RowHeight()'," + GetRow() + ")")) - long(Describe("DataWindow.Detail.Height"))
HTH /Michael
As Michael said you need to make the other elements of the DW slide Up. Then they will move relative to the auto-size height column.
Usually directly above is most effective, use all above when you want it to slide relative to all the columns above.
Hope that helps
David
I'm creating Elevate 2019 presentation on a dozen PowerScript tips. I may add tip on Autosize + sliding to make it a Baker's dozen.