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
When on grid you need to use setCell lightninglauncher.com – Item)
You can also use getCell
TrianguloY I tried this, nothing happen.
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.
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