Jump to content
Search Community

one2gov

Members
  • Posts

    34
  • Joined

  • Last visited

Community Answers

  1. one2gov's post in count absolute position of wrapped element was marked as the answer   
    Actually there is no problem in getting ._gsTransform.x for parent div, just should set variables right 
    var border = document.getElementById("border") instead of 
    var border = document.querySelectorAll(".border"); and
    <div id="border"> instead of 
    <div class="border"> The other problem is that i am careless, but i think i just have to consult with my developers about it..
  2. one2gov's post in cloned draggable element have etra styles and classes was marked as the answer   
    Solution for me was to fire greensock draggable create once per element.
     

    See the Pen ENXgdq?editors=0011 by one2gov (@one2gov) on CodePen
    function checkForDraggable(){  $('.box').each(function(i, obj) {   if ($('.box').css("transform") == "none" || $("#container").find('box').hasClass("copy").length != 0) {
×
×
  • Create New...