Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helper: "clone" compatibility #20

Open
mafar opened this issue Oct 30, 2013 · 1 comment
Open

helper: "clone" compatibility #20

mafar opened this issue Oct 30, 2013 · 1 comment

Comments

@mafar
Copy link

mafar commented Oct 30, 2013

When used with options like
appendTo: document.body, helper: "clone",

Does not behave correctly.
Check Fiddle: http://jsfiddle.net/bababalcksheep/Zr85J/4

helper: Cole is important to fix z-index issues of dragged elements. Kindly tell me how to fix it .

@mafar
Copy link
Author

mafar commented Nov 1, 2013

I fixed it via http://jsfiddle.net/bababalcksheep/Zr85J/5/.
Kindly provide built in support to turn on clone internally. as this still needs workaround for exampel placeholder size etc .. placeholder offset for 'child'

        stop: function (e, ui) {

            var elements = ui.item.data('multidrag');
            ui.item.after(elements).remove();                    
        },
          helper: function (e, item) {
              if (!item.hasClass('ui-state-focus')) {
                  item.addClass('ui-state-focus').siblings().removeClass('ui-state-focus');
              }
              var elements = item.parent().children('.ui-state-focus').clone();
              item.data('multidrag', elements).siblings('.ui-state-focus').remove();
              var helper = $('<li/>').css('list-style', 'none');
              helper.height('auto');
              return helper.append(elements);
          },

@mafar mafar closed this as completed Nov 1, 2013
@mafar mafar reopened this Nov 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant