tooltip: don't work on buttons in a md-fab-toolbar
All tooltips are opened on the same location when mouse is over the fab-toolbar. Example: http://codepen.io/anon/pen/pjrLog
- If the toolbar icons have tooltips then tip shows even if the toolbar is closed - http://codepen.io/team/AngularMaterial/pen/QjxQGW
Duplicate/variation of #4445
@SanderElias the issue with the fab-speed-dial is solved
but not with fab-toolbar -> http://codepen.io/ishankhare07/pen/dMpjXP?editors=1010
the position issue has still not fixed
also i'd like to mention that using ng-if only affects the visibility, but DOES NOT fix the position
Is there a workaround for this?
@ishankhare07 @nicooga You are correct, this was not fixed with the speed dial fixes. Re-opening and assigning to myself.
+1
+1
+1
+1
+1
+1
+1 doesn't work on iOS both Chrome and Safari
+1
+1
Yeah would be pretty nice to see this fixed. My toolbar is very 'wordy' and would be great to use icons+tooltips instead.
+1
One simple (but ugly) workaround is to just use the 'title' attribute on <md-button> instead of using md-tooltip
I have a way to fix it. But it is not perfect solution. After checking the Angular-Material's code I found that the tooltip gets initialised based on parent's pointer-events css properties, which makes sure the parent has pointer events and not set to none.
I was having the same problem, So I fixed it by adding pointer events to the menu's icon and removing it after the page has loaded. Codepen Link
Steps to fix:
- Add this css code into your css file (Make sure it override existing css)
md-fab-toolbar md-toolbar.pevents__initial {
pointer-events: initial;
}
- Add
pevents__initialclass to themd-toolbarelement, which is insidemd-fab-toolbar:
<md-toolbar class='pevents__initial'>
<md-fab-actions class="md-toolbar-tools">
</md-fab-actions>
</md-toolbar>
- Add this javascript code to remove
pevents__initialclass from your above code :
setTimeout(function() {
$('.pevents__initial').removeClass('pevents__initial');
}, 1000);
This is just a hack to make tooltip work inside fab toolbar. Need to read the official code more to find more better solution. But this works for me right now.
