-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Conversation
Wow. Nice. Can we expect 0.3 soon then :-) ? |
Hey @pkozlowski-opensource - I was thinking about developing something very similar to this, so awesome! I should have a chance to dive into this on Tuesday and give some feedback. |
Nice pawel! Took a brief look, couldn't find any problems. I'm sure @joshdmiller has a better grasp on the popup stuff though :-) |
Can't wait to see 0.3 out ! Thanks for your hard work on this ! With this update, I can get rid of some ugly walk arounds ! |
@pkozlowski-opensource Sorry, I didn't get to this until today. :-( I just created a simple Plunker where I migrated the I'll dive into this further Thursday or Friday. |
@joshdmiller sorry, I thought that I will have time to look at this today but something else got in a way. Hopefully you will be able to look into this one, it must be some simple issue here. If not I will have a bit of time during the weekend. |
@joshdmiller OK, tracked it down to this line: It turns out that the |
@joshdmiller I think I've nailed it with the recent changes in 386374b. It required a change where the runtime CSS properties are retrieved. I've also went through a pain of making this work under IE8 - truly horrible experience... Anyway, a plunk with a fix seems to be working OK: Would be awesome if you guys could review it so I can merge it and add typeahead positioning fixes as well. @joshdmiller For the tooltip fixes I would avoid calling
Plunk has those modifications. |
@pkozlowski-opensource I think your plunker points to previous commit. |
@bekos Thnx for catching this, linked a wrong plunk, here is the correct one: |
Landed as 77d9fa7 |
@angular-ui/bootstrap I was so fed up with the positioning issues we are having for tooltips, popovers and typeahead that I've created a new
$position
service that allows us to calculate coordinate of elements in relation to other elements. Have a look at the code.There are 2 commits in this PR: the service itself and its usage in the
typeahead
directive.The only problem is testing of this DOM positioning craziness. I've created a test page that aids with visual testing but really not sure how to create unit tests for this. It should be possible if we would base it on comparing position of 2 elements... but it would mean attaching all the elements to the document - this would slow down tests and I'm not sure how reliable it can be.
@joshdmiller I think that we can fix all the open tickets for tooltips / popovers with this new service so it would be awesome if you could have a look at it.