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!