Comments (7)
Same applies to bootstrap dropdowns, so probably it has something to do with absolute positioning. I'll post here if I find something.
from ember-tooltips.
Hey guys,
So this is likely something to with an issue in ember-tether's positioning. More specifically, tether might have an issue. I looked the issue and didn't see anything obvious.
Maybe something stands out to you?
And @ehubbell, in the example above, does the modal have position
(like absolute
or fixed
)? And does the target (the '?' icon) also have a position
of some kind?
from ember-tooltips.
I was able to fix the problem by setting updateFor=isDropdownOpen
, where isDropdownOpen
is a variable that controls display of my custom ember wrapper around bootstrap dropdown. So, looks like this:
- Target is dropdown, it's hidden and rendered.
- Ember-tooltips renders hidden tooltip, since target is hidden, ember-tether sets its position to [0, 0].
- Out-of-the-box when tooltip is activated, it will be just displayed, but not re-rendered, we get the bug described here.
Possible solutions:
- Make ember-tether re-calculate position right before toggling display on (looks like correct way)
- What I did, make ember-tooltips re-render when target position is changed (easier to do)
So: we have a hotfix, but it would be nice to have good behaviour out of the box, I think this problem is pretty common.
from ember-tooltips.
Got it. That makes sense.
Just so I make sure I understand correctly... A target element is in the DOM and the tooltip is attached. However, the target element hasn't yet been positioned or displayed? Thus, when it is displayed the tooltip previously rendered was not attached to the element's correct position because the element didn't have a position and/or the position changed?
from ember-tooltips.
Yes, you are right.
from ember-tooltips.
@jatt @ehubbell did you guys happen to find a solution for this? I've come across the same problem.
from ember-tooltips.
I actually switched to another library that let me append the tooltip to another divs ID. Lib called emberstrap. Has a bunch of bootstrap js replacements for ember that work well.
Eric (from iPhone)
720.212.1434
On Jul 12, 2016, at 21:14, Andrew Scheuermann [email protected] wrote:
@jatt @ehubbell did you guys happen to find a solution for this? I've come across the same problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
from ember-tooltips.
Related Issues (20)
- Having popover style the same as tooltip HOT 2
- Disable all ember-tooltips styles HOT 1
- Positioning the pointer/arrow so it's not always centered in 3.x HOT 10
- Ember Tooltip v3.4.0 shows a tooltip outside the browser window HOT 10
- Update documentation and tests to use Octane features
- Remove tooltip from DOM on hide HOT 3
- Issue with tooltip positioning HOT 4
- Upgrade to popper@2? HOT 8
- Deprecation warnings with Ember 3.20 HOT 5
- Wrong Sentence at line 335 of README file
- IE 11 - Not working due to js errors HOT 6
- Hiding popover on target click or inside click HOT 1
- onHide triggers even if tooltip wasn't shown HOT 1
- Deprecation warning: Using `run.bind` has been deprecated HOT 2
- Must use import to load ES Module eslint-scope/lib/definition.js HOT 2
- Increased memory usage on 3.5.1
- Remove use of ember global Ember.testing
- Security Vulnerability: glob-parent@<5.1.2
- Popover showing behind elements below HOT 1
- Add Glint TypeScript types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-tooltips.