lundi 19 septembre 2016

Ember Action on mobile device orientation change

I've been tasked with taking an ember website and making it responsive to mobile. one of the problems is that they use a component to draw a graph (d3). the graph is not re-rendered when there is a change on teh parent container. not really much of a problem on a desktop display, but on mobile the drawn graph is drastically different on portrait and landscape. I'm wondering if there is a way to attach an ember observer on a window device orientation change. through jquery regular javascript?




Aucun commentaire:

Enregistrer un commentaire