aterrien / jQuery-Knob

Nice, downward compatible, touchable, jQuery dial
http://anthonyterrien.com/knob/
MIT License
5.03k stars 1.24k forks source link

Redraw canvas? #52

Open netwire88 opened 12 years ago

netwire88 commented 12 years ago

I got jquery-knob to work on regular page loads. However, it fails when integrated with jQuery-Flippy. The HTML is generated correctly, but the canvas isn't drawn. If I execute .knob(), it creates another set of HTML, but the canvas is drawn correctly. Is there a way to call some function to redraw the canvas, but without generating more HTML? I was looking at trigger(), but that doesn't seem to work.

$('.rating-readonly')
    .trigger(
        'configure',
        {
      'min': 0,
      'max': 10,
      'angleOffset': -125,
      'angleArc': 250,
      'fgColor': '#ABD9B9',
      'width': 70,
      'height': 70,
      'readOnly': true
        }
    );
aterrien commented 12 years ago

Can you give us more source code, can't see the context. thx