Polymer paper-dialog not centered

前端 未结 1 1688
生来不讨喜
生来不讨喜 2020-12-21 15:27

In my polymer app, when I open a paper-dialog using an iPhone, it\'s not centered, as opposed to opening it using Chrome or Safari using the a desktop Mac or PC.

I\'

相关标签:
1条回答
  • 2020-12-21 16:04

    The issue was that I called b.open(); right after var b = Polymer.dom(this.root).appendChild(d);.

    Since I add the element dynamically, I should have put b.open(); under a this.async() call, as mentioned in polymer's documentation for similar cases.

    Also fixed the code in my dialog-manager

    0 讨论(0)
提交回复
热议问题