-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tooltip] Tooltip does not position correctly with long message #3721
Comments
I had to add a css rule that sets a max width to the tooltip text and makes it break into several lines, it worked really well but it's fragile and may not work for you :( |
@Goodwine sounds interesting, maybe we can use this to make a PR? Can you share the code? |
I don't think the CSS changes would work for everyone, it's very hacky. In fact, per the material guide, the tooltip shouldn't be that long to begin with. If you really want to do this hack, you could update your stylesheets and set custom rules on Again, those things go against the material guide, so be mindful of that. |
This is related to #2671 and I just commented on that one that this doesn't work. The tooltip already has a max-width property set based on the outcome of that ticket. It needs to perform the way the MatMenu does and reposition itself. |
I tried this with the latest version and AFAICT the behavior seems correct, seems to have been fixed since this issue was reported |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
bug
What is the expected behavior?
Tooltip should be positioned to the left of the md-fab button
What is the current behavior?
Tooltip overlaps the fab button:
![0103d24c-0f2b-11e7-8d6f-b288502cb5f5](https://cloud.githubusercontent.com/assets/6479407/24199444/59f41d4e-0f2b-11e7-9490-77587472cb1e.png)
What are the steps to reproduce?
Tried to create fixed md-fab button in the right bottom corner:
https://plnkr.co/edit/gkr0cO
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, browsers are affected?
Is there anything else we should know?
If I change
mdTooltipPosition="left"
tomdTooltipPosition="above"
- tooltips will be positioned correctly.Shorter tooltip messages are working correctly.
The text was updated successfully, but these errors were encountered: