Hi everyone
I met an UI problem when developing website with dart polymer. I have the following paper-dropdown-menu code
<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>
, where enumeratorList is an observable list defined in dart.
Here is the problem, If I toggle the dropdown menu first, add several elements to the enumeratorList dynamically through dart, and at last open the dropdown menu again, the dropdown would have a wrong display. It would be like this
If I don't toggle the dropdown menu at first, the dropdown menu display would be correct, like this
It seems to me that the dropdown menu can not dynamically detect added/removed paper-item content. I went through the dart APIs of all these element paper-dropdown-menu, paper-dropdown and core-menu but didn't see any method called resize or update. Anyone has ideas how to fix the problem?