I'm trying to use the wheelnav.js library to create a wheel navigation in my lightning component. For some reason when the wheel renders, the wheel will not render correctly.. The size the wheel renders, is dependent on my browser window size.. If I make my browser window size larger the wheel renders incorrectly, but if I make my browser size extremely small the wheel renders correctly. I'm not quiet sure how to approach this, since lightning so so new. Any suggestions on why the wheel is not rendering correctly? Possibly SVG related?

Wheelnav.js site:


Current way wheel is rendering in app:

Current way wheel renders

Right now my code for my component is pretty basic:


<aura:component >
<ltng:require scripts='/resource/WheelNav, /resource/raphael' afterScriptsLoaded="{!c.doInit}"/>

<div id="wheelDiv">



    doInit: function(component, event, helper){


    createWheel : function() {
        var wheel = new wheelnav("wheelDiv");
        wheel.initWheel(["init", "create", "navigate", "refresh"]);
  • I've used wheelnavjs a fair bit. Do you mind sharing the code snippet for your lightning component? – Gaurav Kheterpal Oct 16 '15 at 4:43
  • Sure. I've added it to my original post. – Luke Vang Oct 16 '15 at 15:35

Set the height and width on the wheelDiv. For example in your CSS:

#wheelDiv {
    height: 400px;
    width: 400px;
    margin: auto;
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.