Changing the Alignment in the VerticalArrangement cause an exception

I encountered an issue with MIT App Inventor.

When changing the alignment dynamically in the VerticalArrangement component to any kind of alignment, it causes an exception:

argument is neither Class nor a Type

Please look into this issue at your earliest convenience.

Update:

Blocks:

Please show your relevant blocks

1 Like

I have updated the question and added the Blocks. Thank you!

Try using a number as follows:

image

instead of the HorizontalAlignment.Left/Right block you are using.

I have tested the blocks you are using and it works OK for me in Companion App

what you're suggesting can only be done through the UI. My problem, I want to change dynamically.
and I have tested the block that causes the problem in multiple ways and it always result with the same exception

Your dynamic is the startValue, I believe this is where the exception is coming from. Check that this is coming through when the screen is initialised (set a default e.g. "Center" if there is no startValue value)

Alignment_test.aia (2.0 KB)
blocks
Sample Run
Works fine here.

It couldn't hurt to check if your Companion is up to date.