Closed kungufli closed 8 years ago
I ran into the same issue (which defeats the point of setting the opened
attribute).
For now, I am able to work around it by adding a ready
event handler (instead of setting opened
):
ready: function() {
this.async(function() {
this.$.dialog.open(); // Assuming <paper-dialog id="dialog" ...>
}, SOME_REASONABLE_TIME_IN_MILLIS);
}
Ah, I've just been enforcing a min-height on the paper dialog. This makes a lot of sense. Maybe this will fix the crapshoot of mobile issues I have ...
If the a
paper-dialog
is opened on page load (with theopened
attrbiute or even opened programmatically calling theopen()
onWebComponentsReady
) thepaper-dialog-scrollable
result of size 0, hiding all the included content.Here a simple example:
Another example where the dialog if opened programmatically, with the same result: