-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for corner positions. #206
Conversation
@leonard-thieu tried it and looks working, but atm is not valid to be merged unfortunately.
Can you make these changes? thanks a lot for your time! |
That's for the selector list argument. I'm only using single simple selectors.
I'm not sure why the tip arrow is not showing up for you (or why the tooltip isn't positioned correctly). I can't reproduce it. This is how it displays for me: |
Also, I'm thinking I should change the order of the directions that the I think it might make more sense to have it cycle through all directions in order (i.e. |
You're right sorry i found the wrong :not()
Now it works also for me, i cloned your fork https://github.com/leonard-thieu/angular-tooltips and checked out the corner-positioins branch, everythings ok now :) So let me know how you want to proceed for the directions order, if to open a new PR and merge this or if to wait a little, no problems ... :) |
I'll just make the change now since it hasn't been merged yet. |
This should be good to go. |
but it doesn't seem to work, am i missing anything? thank you. |
@leonard-thieu sorry my bad this was the problem https://github.com/720kb/angular-tooltips/blob/master/index.html#L359 :) must be src/ not dist/ thanks for this great addition, i am going to release it |
Fixes #205
This PR adds support for corner positions (
top left
,top right
,bottom left
,bottom right
). This also modifies thesmart
option to include the corner position as candidates. However, it appears thesmart
algorithm doesn't work correctly even in the most recent commit (44da315). I believe this also fixes a bug withonTooltipSideChange
where it may have failed to remove the old attribute.Also, I didn't know what to do with the tip arrows. They ended up looking pretty ugly.