0 Replies Latest reply on May 22, 2014 12:09 PM by niico1000

    Get responsive width of symbol

    niico1000

      I have a responsive site (horizontal and vertical).

       

      The top & left co-ordinates change as the stage is resized in the browser:

      mySymbol.getSymbolElement().position().top

       

      However - if I want to get the width, that stays the same when the stage is resized:

      mySymbol.getSymbolElement().width()

       

       

      I am trying to detect a collision - so that works when the site is full size - but resizing it breaks collision detection as x & y co-ordinates change with the size of the stage - and width doesn't.

       

      How can I either get responsive widths - or fixed size x & y?

       

      thx