When this component added to layout it looks like this:
When i select and move component from left side to right side, all becomes correct:
What i have to do to achieve correct behaviour by default ?
Is there any way to add item to right column from code ? It may be workaround of problem but i can`t find how to add items in right column from code … =(
Not sure what’s going on - I could not reproduce the issue with a simple test. Any specific browser? Which Vaadin version? Could you post a code snippet that will reproduce the issue?
These are the value of this field, so you should call setValue(…) and give a Set containing the selected options (which should be in the right column) as a parameter.
It seems i haven`t blank value between items at all. But i try to add :
zoneContentSelect.setNullSelectionAllowed(false);
As i know this option restrict null value from available selection items.
I try to use setValue(), but it seems that works in some another way for twincolselect. It works only if i use select(id), before setValue(id).
Working code for thoose who search the same below: