material icon indicating copy to clipboard operation
material copied to clipboard

md-tooltip: in md-content or element with overflow auto gets cut

Open ghost opened this issue 11 years ago • 6 comments

Hi,

Some parts of my md-tooltip are getting cropped by another element. I tried:

md-tooltip{ z-index: 99999 !important; }

but the problem still persists. How can I make sure, the tooltip is always on top layer?

ghost avatar Oct 23 '15 17:10 ghost

Can you please provide a codepen so we can investigate more?

EladBezalel avatar Oct 23 '15 18:10 EladBezalel

I've got the same problem.

When you hover over the icons in the left sidenav in this codepen you get some ugly horizontal and vertical scrollbars and the tooltips get clipped.

2015-10-27_11h02_49

jb29 avatar Oct 27 '15 10:10 jb29

@happschinson is your problem is the same as @jb29?

@jb29 As we can't anticipate any use case, this one is this user responsibility.

EladBezalel avatar Oct 27 '15 20:10 EladBezalel

Simple and common use case - vertical toolbar of md-icon-buttons. http://codepen.io/anon/pen/PPdrwV

Dimanoid avatar Nov 06 '15 12:11 Dimanoid

@topherfangio, @EladBezalel -

When the md-tooltip directive finds a parent ( using parent = $mdUtil.getParentWithPointerEvents(element),, that parent's computed width should be inspected. If tool narrow, then:

  • use the body as the parent
  • attach scroll listener to autohide the tooltip upon scroll.

ThomasBurleson avatar Nov 06 '15 17:11 ThomasBurleson

This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.

ThomasBurleson avatar Apr 28 '16 20:04 ThomasBurleson