{"action":"opened","issue":{"url":"https://api.github.com/repos/google/material-design-lite/issues/4221","repository_url":"https://api.github.com/repos/google/material-design-lite","labels_url":"https://api.github.com/repos/google/material-design-lite/issues/4221/labels{/name}","comments_url":"https://api.github.com/repos/google/material-design-lite/issues/4221/comments","events_url":"https://api.github.com/repos/google/material-design-lite/issues/4221/events","html_url":"https://github.com/google/material-design-lite/issues/4221","id":142989827,"number":4221,"title":"Tooltips not aligning correctly in certain elements","user":{"login":"brucedlukens","id":14034482,"avatar_url":"https://avatars.githubusercontent.com/u/14034482?v=3","gravatar_id":"","url":"https://api.github.com/users/brucedlukens","html_url":"https://github.com/brucedlukens","followers_url":"https://api.github.com/users/brucedlukens/followers","following_url":"https://api.github.com/users/brucedlukens/following{/other_user}","gists_url":"https://api.github.com/users/brucedlukens/gists{/gist_id}","starred_url":"https://api.github.com/users/brucedlukens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucedlukens/subscriptions","organizations_url":"https://api.github.com/users/brucedlukens/orgs","repos_url":"https://api.github.com/users/brucedlukens/repos","events_url":"https://api.github.com/users/brucedlukens/events{/privacy}","received_events_url":"https://api.github.com/users/brucedlukens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T15:18:54Z","updated_at":"2016-03-23T15:18:54Z","closed_at":null,"body":"I have an issue with mdl tooltips not aligning correctly and I have tracked it down to what I believe is the problem. I have a large web app where elements can either be displayed within the third party library react-grid-layout, or outside of react-grid-layout. If an item is within react-grid-layout, none of the tooltips align correctly, they're always offset by the same offset of the react-grid-layout region from the parent container. This is because the react-grid-layout regions call transform: translate(X, Y) (X and Y being a pixel offset from the region in the top left, the top left region is always set as 0px, 0px, even if it's halfway down a page).\r\nThis seems to cause the MDL tooltips to base their position information on the referenced element's position within the overall window, but when it sets the position information on the tooltip itself, it seems to think that the react-grid-layout's top left region is at 0px, 0px of the entire screen, using that as a reference point. This causes the tooltips to display too far right and too far bottom.\r\nI guess my point is that the tooltips are using one set of position information (absolute window pixels) to adjust where they are based on a relative position (pixels within a parent element that has used transform: translate). If someone has seen something like that before and knows of a fix, that would be much appreciated, but I think this may be an underlying, albeit rare, issue built into mdl tooltips?"}}