observe in chrome 36

60 views
Skip to first unread message

Chris Carver

unread,
Jul 22, 2014, 12:10:53 PM7/22/14
to polym...@googlegroups.com
Hi,

I've been using the observe functionality to listen to changes in div sizes when using the core-splitter.  I.e:

<div id="leftDiv">
       TEST LEFT
</div>
<core-splitter direction="left"></core-splitter>
<div flex id="rightDiv">
       TEST RIGHT
</div>

observe: {
                '$.myDiv.style.width': 'divWidthChanged',
...

myDiv is the target of a core-splitter so it's style width is being updated when the splitter is tracked.  In chrome 35, divWidthChanged is called repeatedly as the splitter tracks and updates the div's style width.  This does not work in build 36 where the handler is called once when the element is initialised and then no-longer.  If I change this style width from code within my polymer element then divWidthChanged does get called but when the splitter changes the style width divWidthChanged does not get fired.  

There's a difference in behaviour in the latest build 36 but is this a bug?

Erik Arvidsson

unread,
Jul 22, 2014, 12:55:09 PM7/22/14
to Chris Carver, polym...@googlegroups.com
DOM properties cannot be observed. It was/is a bug that we report these changes when O.o is not present.


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 polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/9300685e-edb9-47f1-a58c-c49ad01b5707%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
erik


Reply all
Reply to author
Forward
0 new messages