This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(autocomplete): fixes the sizing math
- Loading branch information
2390d88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #6495 as well.
2390d88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe the width=1 is required any longer, this looks like a fix to get around an issue where a small number of tabs would have been causing the tab bar to overflow now that getBoundingClientRect().width is being used it will cater for any extra space that was being removed via rounding from element.offsetWidth.
Math.ceil on the final width rather than each tab heading will also mean there are not additional pixels allocated to the width of the tabbar which could be the case if there are enough tabs.