Hi,
In my project I'm creating a paper-dialog with JavaScript similar to this:
var fragment = "<paper-dialog id='mydialog' modal='true'
...>...</paper-dialog>";
$('body').append(fragment);
var $dialog = $('#mydialog');
var dialog = $dialog.get(0);
Polymer.Base.async(function(){
dialog.toggle();
// correct the unfathomable style "max-height: 0px;" applied to the
dialog after toggle() is called
if ($dialog.css('max-height') == '0px') $dialog.css('max-height',
'none');
}, 1);
What I find is: after dialog.toggle(), the dialog element is given the
style "max-height: 0px" (in its style attribute). Does anyone know *why on
Earth* this would happen? Max-height of 0 is totally unexpected.
Thanks for any ideas!
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/0560d9d3-3a68-4203-b51b-d89552bf864f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.