Dynamic links not updating when returning to scene

I created a widget with a dynamic link from the settings which determines it’s x and y positions in the  scene:create  function. But when I go to settings, change the setting and return back the positions have not changed accordingly. Should I be creating the widgets in the  scene:show instead?

If you are not removing the settings screen, which forces scene:create to be called again, then depending on how you created the widget, you may have to move it to scene:show (which remember, gets called twice).  If you built your widget with methods to set the position independently of its creator function, you an create it in scene:create, but set the positioning in scene:show()

Rob

Ah yes of course! Thanks, that works great.

If you are not removing the settings screen, which forces scene:create to be called again, then depending on how you created the widget, you may have to move it to scene:show (which remember, gets called twice).  If you built your widget with methods to set the position independently of its creator function, you an create it in scene:create, but set the positioning in scene:show()

Rob

Ah yes of course! Thanks, that works great.