I would like to resize a widget to a preset size when swiping down.
I would like to resize a widget to a preset size when swiping down.
Is it possible somehow? scripting did it
If not I would suggest to add an action for that.
< ![CDATA[
I belive in script the LL.getEvent() will not receive the item when it’s put as a swipe event, but if you don’t mind that, it’s possible to resize an item from script
]]>
< ![CDATA[
LL.getEvent().getItem().setSize(720,486);
This does resize my widget, but I have to go to edit mode until it actually resizes
]]>
< ![CDATA[
Lukas Morawietz this is a bug!
But I think Pierre Hébert already knows about it. I may be wrong.
]]>
< ![CDATA[
I made a workaround with
i.getProperties().edit().setBoolean(“i.enabled”,false).setBoolean(“i.enabled”,true).commit();
]]>
< ![CDATA[
Nice workaround ! (albeit slow maybe…)
Fortunately a fix will be available soon.
]]>
< ![CDATA[
I don’t know why, but I can’t get items in the desktop load event. I wanted to connect my script with that 🙁
]]>
< ![CDATA[
Regarding the load event, is it the visibility exception or is it another issue ?
]]>
< ![CDATA[
NullpointerException
]]>
< ![CDATA[
Maybe it is possible to set up an event for desktops, that occurs when the desktop gets displayed, not when it is loaded…
That would fit for me even better than the load event.
]]>
< ![CDATA[
Yes TrianguloYsuggested the same thing
]]>
< ![CDATA[
OK, didn’t saw that.
I am in here for not so long.
]]>
< ![CDATA[
No problem, I am myself missing posts quite often !
]]>
< ![CDATA[
Load event and setsize are now working as I expect.
]]>