似乎没有聚合物布局事件 [英] there doesn't seem to be a polymer-layout event
问题描述
我正在寻找一个由 polymer-layout
触发的事件,当它完成布局后,类似于 polymer-grid-layout code>事件。似乎不是一个。我错过了什么吗?
I'm looking for an event fired by polymer-layout
when it's finished laying out, similar to the polymer-grid-layout
event. Doesn't seem to be one. Am I missing something?
尝试聚合物网格布局(在聚合物网格布局内自动调整画布)我决定将所有内容都转换为嵌套的聚合物布局。几次打(之后(例如,如果您将Polymer-layout作为元素直接放在模板下,则 dart版本的Polymer-layout不起作用,而js版本却无法工作-不知道哪一个错了 )的方法似乎有效。
After my attempts at polymer-grid-layout (Autosizing canvas inside a polymer grid layout) I've decided to convert everything to nested polymer-layouts instead. After a few hiccups (e.g. the dart version of polymer-layout doesn't work if you put polymer-layout as an element directly under template, whereas the js version does - don't know which is wrong) the approach seems to be working.
一个例外是,我以前依靠 polymer-grid-layout
告诉我何时画布已正确调整大小。但是使用 polymer-layout
,我遇到了相同的计时问题,但没有相同的解决方案。
The one exception is that I was previously relying on polymer-grid-layout
to tell me when the canvas had been resized properly. But with polymer-layout
I have the same timing problem but without the same solution it appears.
任何方法这是
谢谢
安德斯
推荐答案
Dart polymer_element / polymer_ui_element有点过时了。自上次重新访问Dart聚合物布局(可能是Mo / Di)以来,我将看看JS聚合物布局已进行了哪些更改。
Dart polymer_element/polymer_ui_element are a bit outdated. I'll take a look at what changes were be made in JS polymer-layout since I last revisited Dart polymer-layout (probably Mo/Di).
可以吗?在 https://github.com/ErikGrimes/polymer_elements 中创建问题,以便在更新为
Can you please create an issue in https://github.com/ErikGrimes/polymer_elements so you get notified when the update is made.
这篇关于似乎没有聚合物布局事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!