You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a visualisation that moves words across the screen so I need to know the width of each word. To achieve that I use the component onSizeChange. Each word is set with render size mode. The first time I set the content It triggers the event for every word. It does work really well, the problem comes when the words get to the left of the screen then I need to change the content of each word. Only when the new content is bigger the onSizeChange component gets triggered therefore some words stay on the left and they get not triggered.
Is that a known issue? could you advise on what could I do to get the width every time please?
and this is how I set the new content of the word:
P04_WordCtrl_NODE.prototype.startWord = function (word_feed) {
this.dom.setContent(word_feed);
};
The text was updated successfully, but these errors were encountered:
elinfante
changed the title
Node (Render size mode) onSizeChange only triggered when the content is bigger.
[bug?] Node (Render size mode) onSizeChange only triggered when the content is bigger.
Aug 24, 2015
Hello,
I have a visualisation that moves words across the screen so I need to know the width of each word. To achieve that I use the component onSizeChange. Each word is set with render size mode. The first time I set the content It triggers the event for every word. It does work really well, the problem comes when the words get to the left of the screen then I need to change the content of each word. Only when the new content is bigger the onSizeChange component gets triggered therefore some words stay on the left and they get not triggered.
Is that a known issue? could you advise on what could I do to get the width every time please?
Thanks!
You can see a live version of the issue here:
http://www.buzzradar.com/test/juan/onsizechange/
and this is how I set the new content of the word:
The text was updated successfully, but these errors were encountered: