-
Notifications
You must be signed in to change notification settings - Fork 34
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
Liquid Fire/Ember Wormhole integration #8
Comments
Nice work. This would help a lot with testing. Is the offset/bounds math and positioning logic in Regarding the current import of |
@chrislopresto The positioning logic plays well if the If users decide to override this behavior, or if they are overriding the root element to place it somewhere else in the DOM, this may not work. I haven't tested it yet in those cases. I'll include the whole lib then, just waiting on the tether team to pull! |
Further conversation on how to resolve this inside of tether is continuing here shipshapecode/tether#96. |
I'm going to close this issue because https://github.com/pzuraq/liquid-tether addon has a full implementation of the concepts discussed here. I'm open to the idea of making |
Sounds good 👍 It's a tough problem, and I didn't want to completely change the direction of |
Currently there is no way to smoothly integrate
ember-tether
withliquid-fire
. One major issue is that there is no way to control the element thattether.js
attaches tethered elements to, meaning they are always bumped directly up to the body. This is problematic both for centralizing animations and for testing usage ofember-tether
(in tests, the element is bumped all the way up to the top body element outside of the domain of the test, so there is no way to find it inside the isolated test container).This PR gives
tether.js
an option to prevent it from moving it the element at all. We can combine this feature withember-wormhole
to control the outlet that the tethered element is attached to, in a way that's similar toember-modal-dialogue
.On the
liquid-fire
end we may need to create some kind of outlet that will animate newly attached elements. Still looking into this currently, but I have tested every other step and will submit a PR toember-tether
once tether is updated.One question I have is regarding the current import of
tether.js
:The full
tether.js
lib is not being imported here, is there any reason why? This will be important for updatingtether
.The text was updated successfully, but these errors were encountered: