Expand my Community achievements bar.

Erratic presence behavour.

Avatar

Level 4

Hello all,


What I'm trying to accomplish is to have a multiline textbox appear if a certain radio button is selected. So, on ready:layout of the textbox, I set the presence to either "hidden" or "visible" based upon the radio button value.

The issue isn't about whether or not I can get it to appear... it's that the display behavour is very erratic. For example, if I manually set the presence to hidden in Designer first, when ran, the textbox is displayed on top of the radio buttons when I dynamically set the presence to visible. Additionally, When I mannualy set the presence to visible in Designer, when ran, the textbox acts as though it's presence is set to invisible when I dynamically set the presence to hidden (the whitespace is maintained).


I have ensured that all parent objects are set to flowed. I have no clue What I'm doing wrong. Is this just a bug?


I've included a url below to a sample .pdf file with the issue. Please let me know if you can see what I'm doing wrong.


Thanks for your help,


- Scott


URL: http://www.mediafire.com/?w4culcfmzi896x4

2 Replies

Avatar

Level 10

Instead of setting the presence to invisible set it to hidden.. That can remove the white space occupied by the text box..

Thanks

Srini

Avatar

Level 4

Thanks for the reply,

I have been setting it to hidden, but for some reason, 'Hidden' behaves like 'Invisibile', in that it keeps the whitespace.

I have the solution, though... I found that if I enter more text than the textbax can initially display, it repositions itself properly when it expands to fit the content. This led me to believe that it was just a rendering bug. The fix was to include an 'xfa.layout.relayout();' after I hide/display the textbox.

Thanks for your time, though.

- Scott