OverflowTooltip is overzealous in showing
Closed this issue ยท 0 comments
mannycarrera4 commented
๐ Bug Report
When this change was introduced, the tooltip shows more frequently than it should.
Without a breaking change our options are:
- Use scrollWidth and clientWidth and a chance of a false negative if the overflowed box is slightly bigger than the render box
- Use scrollWidth and ClientRect and have a 50% chance for a false positive
The breaking change is in OverflowTooltip where it always adds two span tags with ellipsis overflow and should never have a false negative or a false positive. We'd have to add options to the overflow. Right now, the overflow type is up to the element being wrapped in an OverflowTooltip rather than the OverflowTooltip itself.