javascript - Resizing a YUI dial widget as page resizes -


I am using a responsive page and trying to update the size of the screen so that the screen's Size can be changed. Always fits within your container

I think that might be able to update the characteristics of the dial object (diameter, width, height, etc.), but the UI can not be found to update Could. Renderer () calling and syncUI () the way does not seem to be anything.

In fact, YUI can not be used long ago I am missing something!

Despite this question stumbled for someone, I managed to solve it. I was not using the appropriate set () method before calling the syncUI () method on the dial object. Here's the solution:

  $ (window) .smartresize (function () {var diameter = $ ('# container'). Width (); dial .Set ('diameter', diameter) ; Dial.syncUI ();});  

Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

Firefox reacting to JQuery setTimeout that doesn't apply -