Variable lifecycle?

My issue is:

We setting property ( this.set(‘x’) ) to set visible divs (class="{{x}}") in handlebars.

How to get those div position as they are display:none which means that they don’t have position.

Doesn’t work:

  • this.set(‘x’,‘show’) won’t give me any hooks / no promises
  • adding any lifecycle component hook doesn’t work after changing this property
  • setTimeout not good idea
  • observers to properties / computed and bindings also doesn’t works

It’s a simple: variable to show div and get positions after they are visible. I’ve spend 8 hours on that today.

Only setInterval and checking does this object are visible then take position. However I prefer to not use setInterval…

You need to use one of the runloop methods, or