Hi everyone
I met a problem when developing a website with dart polymer. In my polymer
element, here is a dropdown list
<paper-dropdown-menu>
<paper-dropdown>
<core-menu>
<template repeat="{{enumerator in enumeratorList}}">
<paper-item name="{{enumerator}}"> {{enumerator}} </paper-item>
</template>
</core-menu>
</paper-dropdown>
</paper-dropdown-menu>
The enumeratorList is an observable list. If I add several elements to the
list and open the dropdown menu, the display is correct.
However if I open the dropdown-menu first and then add the several elements
dynamically in dart, then open the dropdown menu again. It would display
like this
Seems that the paper-dropdown-menu can not detect the paper-items and
adjust its size to fit.
If I click on the up/down arrow in the right of the dropdown menu
repeatedly, I can even got the error message in chrome console : Uncaught
TypeError: Cannot read property 'position' of null
Anyone could help how to solve it? Thanks very much!!!
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/409ce9e7-1a83-4b82-8f0e-df209fd2efee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.