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

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -