-
Notifications
You must be signed in to change notification settings - Fork 15
[0.8] Multiple ripple elements in a polymer element don't respect parent node bounds #38
Comments
I believe this difference in behavior is due to the following in get target () {
return this.host || this.parentNode;
} |
Could this possibly be prevented by just doing: get target(){
return this.host;
} Or would this not be possible? I will test this when I get the chance to! |
in the current version 1.0.0, if get target() is modified like below, paper-ripple appears to works as expected in either the light dom or within an element definition. Otherwise, unmodified, it does not necessarily work as expected if used within an element definition. get target(){
return this.parentNode;
} Another qualification: the intended bounding container should not be statically positioned |
+1 |
Relating to this, if a ripple is repeated via dom-repeat, all siblings animate at the same time. I assume they all receive the same touch event since a given ripple element does not fit itself within its relative container. Example:
Each ripple will have an additional |
I worked-around the issue by creating an element:
and changing my previous markup to use the element:
|
I can confirm that this has been fixed, for me, over here: |
Yep, it appears transition from the shadow-dom encapsulation to a "shady-dom" implementation broke the behavior. Looks like the fix checks if a document-fragment before assigning ownerRoot.host, otherwise its simply the parentNode(which is what it should be if not a shadow-dom). One confusing thing is that "shady-dom" is supposed to employ shadow-dom where natively available https://www.polymer-project.org/1.0/articles/shadydom.html but there is no longer any shadow-dom fragments in polymer components, even when testing in chrome. Thus the previous broken behavior of paper-ripple across all browsers. |
http://jsbin.com/yusose/3/edit
The text was updated successfully, but these errors were encountered: