Sorry if this was answered before, I Google and could not find an answer.

Sorry if this was answered before, I Google and could not find an answer. How can I increase the Width of an item attached to grid from script.

Below is my adrift, setPosition works fine but the setSize does not.

var newitem = pnl.addShortcut(“”,i,0,0);

newitem.setName(“Event” + eventdetails[0]);

newitem.setPosition(minstart, room);

newitem.setSize(minend, 1);

newitem.setTag(‘Record_ID’, eventdetails[0]);

TrianguloY​

4 Commentsto Sorry if this was answered before, I Google and could not find an answer.

  1. TrianguloY says:

    When on grid you need to use setCell lightninglauncher.com – Item)

    You can also use getCell

  2. TrianguloY I tried this, nothing happen.

  3. TrianguloY says:

    It works for me. Make sure you are using the correct parameters.

    Also, if your script reloads the container, use the function with 5 parameters (the last being a boolean indicating whether to save that position in portrait or landscape). Otherwise it will be lost.

  4. Thanks. I added an item manually then I used getCell to understand how LL put it, then I used the setCell. Thanks. That was awesome as usual TrianguloY​

Leave a Reply

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