Skip to content
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

_ensureTarget, when inside a custom PaperDialogBehavior element does not work #75

Open
1 task done
wesalvaro opened this issue Oct 25, 2017 · 0 comments
Open
1 task done

Comments

@wesalvaro
Copy link

Description

Resizing when the part of a custom element does not work.
_ensureTarget does not work when added as the first child of a custom element.
Workaround is to set the custom element's sizingTarget in the ready function to the paper-dialog-scrollable. It looks like the dialog element is getting set to the document fragment and not the element. Perhaps setting

Expected outcome

When resizing, the contents of the dialog should not escape the dialog.
this.dialogElement should be set to the custom element.

Actual outcome

When resizing, the contents of the dialog escape the dialog.
this.dialogElement is set to the shadow-root/document fragment of the custom element.

Live Demo

https://output.jsbin.com/pimamozebi

Steps to reproduce

Create custom element with the Polymer.PaperDialogBehavior and put a paper-dialog-scrollable as its only child in the template. Notice that resizing does not work as it should.
Using this.parentNode.host, if it exists, fixes the issue.

Browsers Affected

  • Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant