4 Replies Latest reply on Sep 25, 2013 9:37 AM by elainecc

    how to resize dynamic image to fit rectangle

    skotch99

      hi - i have a series of small rectangles i create dynamically using this:

       

       

      var s = sym.createChildSymbol("example","Stage");

                  s.$("smallpic").css({"background-image":"url('"+example+"')"});

       

      works well - but how can i automatically scale the background image to fit the size of my rectangle ("smallpic" is this example)

       

      thanks!