Closed HGARZON closed 7 years ago
@HGARZON What kind of problem do you have? Can you provide more information please? Is the reference element exist and visible?
Cannot reproduce.
@HGARZON Any news?
@HGARZON, do you remember the specifics of this issue? Is this related to the Bubble not refreshing its position by itself?
Yes, it seems that the bubble position, if something changes on the DOM, only will change if we call the refreshPosition method.
@HGARZON, thanks! I'll re-label this as "feature request" instead of a "bug", since what you describe is the expected behaviour —but most certainly not the ideal.
I'll close this, since to automatically update the Bubble position we should add a MutationObserver
, an Event
or any other mechanism to identify if the DOM has changed. Sadly that's not aligned with the project's current objectives.
By using the refreshPosition()
method this could be implemented in specific projects if necessary.
Thank you very much for the suggestion. 😀
When defining a Bubble:
couponBubble = $.bubble({ 'content': msgDefMkt }),
The component is working only with a subscription to an event. Otherwise, doesn't work :(
For example:
couponBubble.on('show', function() { this.refreshPosition({ 'reference': $('#couponCode') }); })