Because the element doesn't really exist until the user expands the folded paragraph, MynOverflowTextMarquee doesn't register an overflow to create a marquee for. We need some way for it to call its initialize function once the user clicks to expand.
Ideally, we'd come up with some kind of generalized solution to this problem so that whenever an element changes size or appearance in some way, the marquee adjusts. I did just add an event listener for window resizing, which solves that problem, but not this one.
Because the element doesn't really exist until the user expands the folded paragraph, MynOverflowTextMarquee doesn't register an overflow to create a marquee for. We need some way for it to call its initialize function once the user clicks to expand.
Ideally, we'd come up with some kind of generalized solution to this problem so that whenever an element changes size or appearance in some way, the marquee adjusts. I did just add an event listener for window resizing, which solves that problem, but not this one.