{"action":"created","issue":{"url":"https://api.github.com/repos/720kb/angular-tooltips/issues/162","repository_url":"https://api.github.com/repos/720kb/angular-tooltips","labels_url":"https://api.github.com/repos/720kb/angular-tooltips/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/720kb/angular-tooltips/issues/162/comments","events_url":"https://api.github.com/repos/720kb/angular-tooltips/issues/162/events","html_url":"https://github.com/720kb/angular-tooltips/issues/162","id":157145760,"number":162,"title":"Tooltip sizing (max-width)","user":{"login":"longzheng","id":484912,"avatar_url":"https://avatars.githubusercontent.com/u/484912?v=3","gravatar_id":"","url":"https://api.github.com/users/longzheng","html_url":"https://github.com/longzheng","followers_url":"https://api.github.com/users/longzheng/followers","following_url":"https://api.github.com/users/longzheng/following{/other_user}","gists_url":"https://api.github.com/users/longzheng/gists{/gist_id}","starred_url":"https://api.github.com/users/longzheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longzheng/subscriptions","organizations_url":"https://api.github.com/users/longzheng/orgs","repos_url":"https://api.github.com/users/longzheng/repos","events_url":"https://api.github.com/users/longzheng/events{/privacy}","received_events_url":"https://api.github.com/users/longzheng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-27T07:24:30Z","updated_at":"2016-05-27T07:29:03Z","closed_at":"2016-05-27T07:27:47Z","body":"In the latest version of angular-tooltips, the ```max-width``` behavior no longer seems to have an effect.\r\n\r\nFor very long tooltip content, the tooltip is always locked at the minimum ```min-width: 100px``` size.\r\n\r\nCurrent behavior\r\n![image](https://cloud.githubusercontent.com/assets/484912/15600843/f5278144-242f-11e6-9549-4ae0d7c46de0.png)\r\n\r\nI've used earlier versions of this library and it used to use absolute positioning to place the tooltip correctly on the page. However in the newer versions, you seem to have switched to a custom ```<tooltip>``` element with a ```position:relative``` CSS style.\r\n\r\nNow the ```tip``` element is center positioned using the ```transform: translateX(50%)``` trick. Unfortunately the ```position:relative``` on the parent has the side effect of the tooltip content no longer having a variable width that will correctly adhere to the ```max-width``` layout. It will always try to be scaled as small as possible.\r\n\r\nIdeal behavior\r\n![image](https://cloud.githubusercontent.com/assets/484912/15600882/251274e0-2430-11e6-8082-92f09ca6abf2.png)\r\n\r\nAre there any plans to revert the design of this library to its previous behavior so ```max-width``` works correctly?\r\n\r\n- Removing ```position: relative``` on the ```<tooltip>``` element\r\n- Using calculated ```top: XXpx``` ```left: XXpx``` values on the ```<tip>``` element from the nearest parent with ```position: relative```"},"comment":{"url":"https://api.github.com/repos/720kb/angular-tooltips/issues/comments/222079240","html_url":"https://github.com/720kb/angular-tooltips/issues/162#issuecomment-222079240","issue_url":"https://api.github.com/repos/720kb/angular-tooltips/issues/162","id":222079240,"user":{"login":"longzheng","id":484912,"avatar_url":"https://avatars.githubusercontent.com/u/484912?v=3","gravatar_id":"","url":"https://api.github.com/users/longzheng","html_url":"https://github.com/longzheng","followers_url":"https://api.github.com/users/longzheng/followers","following_url":"https://api.github.com/users/longzheng/following{/other_user}","gists_url":"https://api.github.com/users/longzheng/gists{/gist_id}","starred_url":"https://api.github.com/users/longzheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longzheng/subscriptions","organizations_url":"https://api.github.com/users/longzheng/orgs","repos_url":"https://api.github.com/users/longzheng/repos","events_url":"https://api.github.com/users/longzheng/events{/privacy}","received_events_url":"https://api.github.com/users/longzheng/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T07:29:03Z","updated_at":"2016-05-27T07:29:03Z","body":"@45kb Fair enough. If you find the version where it was working (or the commit that broke it), I'd love to apply it locally to my dev!"}}
{"actor":{"display_login":"longzheng"}}