Replace `updateFor` w/ MutationObserver
maxfierke opened this issue · comments
updateFor
is kind of a hack to induce a call to update the tooltip display if some content changes. Instead, I think we can wire something up with a MutationObserver
to update the tooltip if content nodes change. We might even be able to enhance this by only updating the tooltip when mutations that affect the width or height happen.