What am I doing wrong with the script.

What am I doing wrong with the script. Box left alignment is not fixed through the script. However, when I open the editor, I find that left alignment is selected and when I just click on it again, the alignment is fixed. See the short video.

var item = LL.getEvent().getItem();

var editor = item.getProperties().edit();

var box = editor.getBox(“i.box”);

box.setAlignment(“LEFT”,”MIDDLE”);

editor.commit();

]]>

2 Commentsto What am I doing wrong with the script.

  1. Anonymous says:

    < ![CDATA[

    This is probably a bug in the current beta where changes made to the box settings are not propagated to all components of the item (in this case the text). I will fix this for the next update.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Thanks Pierre Hébert​

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *