Comments (2)
The problem stems from how core-animated-pages
hides its non-selected children with display: none
:
::content > *:not(.core-selected):not([animate]) {
display: none !important;
}
which prevents the tooltip from calculating it's .clientWidth
and positioning itself correctly. We saw a similar issue with google-map
: googlearchive/core-animated-pages#26.
It's not ideal, but one work around is to manually call tooltip.setPosition()
when core-animated-pages-transition-end
fires:
Note: core-animated-pages-transition-prepare
would be a better time (both the current page and next page are visible then), but there's a bug that janks the page transitions
from core-tooltip.
with a little modif for my custom element it is perfect
var custom = this.shadowRoot.querySelector('section[active]').querySelectorAll('custom-element');
Array.prototype.forEach.call(custom, function(element) {
var tooltips = element.shadowRoot.querySelectorAll('core-tooltip');
Array.prototype.forEach.call(tooltips, function(tip) {
tip.setPosition();
});
});
thx a lot
from core-tooltip.
Related Issues (20)
- Tooltip doesn't disappear when mousing away of a button that's been clicked HOT 1
- Add ARIA role="tooltip"
- Support disabled attribute
- Migrate to using core-focusable HOT 3
- core-tooltip is open when menu is open when used with a paper-menu-button HOT 1
- Add delay show on option for desktop and mobile
- aria attributes may be incorrect
- Setting width of tooltip window? HOT 1
- Not working properly with display: inline; HOT 4
- Tooltip stays visible when content button/element is released [mobile] HOT 3
- Adding a tooltip to an element whose parent has overflow:hidden can obscure portions of the tooltip when displayed HOT 10
- Consider "title" instead of "label" HOT 2
- tipAttribute is not working properly
- Cannot force tooltip to hide HOT 5
- disabled attribute causes nested elements to be disabled HOT 2
- Tooltip hides when child element gains focus
- Wrong left attribute calculation of tooltip HOT 6
- Where's 1.0 version for this element? HOT 17
- Tooltip demo returns 404 error HOT 5
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 core-tooltip.