Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

md-tooltip positioning incorrectly when direction is changed #10405

@tyrdavis

Description

@tyrdavis

Actual Behavior:

  • What is the issue? * md-tooltips in 1.1.3 do not appear in the correct position when the md-direction attribute is changed, after rolling over the tooltip at least once. It appears the edge of the tooltip being used to calculate the position is determined on first roll-over of the tooltip, and not updated if the direction is changed.
  • What is the expected behavior? Tooltips should position themselves as they did in version 1.1.1.

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue: http://codepen.io/anon/pen/qRvEGw
  • Details: Roll over the FAB with the radio set to "bottom", then switch the direction radio button to "left". The top of the tooltip is aligned with the center of the FAB instead of the center of the right edge being aligned to the center of the FAB, as expected.

Angular Versions: *

  • Angular Version: 1.5.5
  • Angular Material Version: 1.1.3

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * 55.0.2883.87
  • OS: * Windows 7
  • Stack Traces:

Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.

Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions