Picture of Henrik Aabom
Notify not displaying properly
by Henrik Aabom - Thursday, 19 August 2021, 12:55 PM
 

Hey everyone

We have created an extension that uses the notify system to display an article in a popup. But we ran into an issue where about 5% of the times the notify opens, it displays the content wrongly, and when that happens, it is no longer possible to scroll down in the popup.

We've noticed that when the error happens the function resizeNotify(), found in \src\core\js\views\notifyView, is only run once by onLoaded(). 

When the popup opens without errors the function is run twice, once by resetNotifySize() and once by onLoaded().

We can't seem to find a pattern to this error, but it might be something with timing, maybe the article isn't completely rendered when the script determines whether to run resizeNotify() or something like that.

Has anyone noticed something similar?

Thanks

Adapt: 5.15.5

AT: 0.10.5

Picture of Oliver Foster
Re: Notify not displaying properly
by Oliver Foster - Thursday, 19 August 2021, 1:42 PM
 

I've never seen this before.

Adapt.notify.popup({ _id: 'articleid' });

Normally takes care of it all.

Picture of Henrik Aabom
Re: Notify not displaying properly
by Henrik Aabom - Thursday, 26 August 2021, 5:32 AM
 

Thanks Oliver! That solved all of our problems! :D

Picture of Oliver Foster
Re: Notify not displaying properly
by Oliver Foster - Thursday, 26 August 2021, 10:22 AM
 

Awesome. No worries.