I was trying to use a knob widget as part of a custom widget. I put the following code in my custom widget:
<div ng-init='volume={"name": "Volume", "item": "Receiver_Zone1_Volume" }'>
<widget-knob ng-model="volume"/>
</div>
When I preview the widget, I get nothing but a blank widget. In chrome, I ran an inspect, and noticed the following in the console:
Error: <svg> attribute width: A negative value is not valid. ("-20") @ vendor.js:358
Error: <svg> attribute height: A negative value is not valid. ("-20") @ vendor.js: 358
Looking at the inspect window, I see the area for the ui-knob, which contains an <svg> with a specified width and height of -20.
I have looked through the code as much as I am able, and I donât see any way to specify the width and height. I can (and did) specify the size, but that had no effect.
So my question is, has anyone used a knob widget inside a template or custom widget? If so, what did I miss?