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

acceptWidgets between nested grids #386

Closed
Coopyrightdmin opened this issue Mar 4, 2016 · 6 comments
Closed

acceptWidgets between nested grids #386

Coopyrightdmin opened this issue Mar 4, 2016 · 6 comments

Comments

@Coopyrightdmin
Copy link

Hi,

I am using the acceptWidgets: '.grid-stack-item'option but I am not able to drag and drop from nested grids to others. Any suggestion?

<div class="row">
  <div class="grid-stack grid-stack-6">
    <div class="grid-stack-item">
       <div class="container grid-stack-item-content">
         <div class="row"> 
           <div class="grid-stack grid-stack-1"><!-- From Here! -->
             <div class="grid-stack-item">
               <div class="container grid-stack-item-content">Content</div>
             </div>
           </div>
        </div>
      </div>
      <div class="grid-stack-item">
        <div class="container grid-stack-item-content">
          <div class="row"> 
            <div class="grid-stack grid-stack-1"><!--To There! -->
          </div>
        </div>
      </div>
    </div>
  </div>

nested containers

@radiolips
Copy link
Member

I cannot speak for @troolee, who implemented this very cool feature, but I haven't personally tested doing this with nested grids. I appreciate the HTML you've included, but could you provide a jsfiddle for us to take a look at? I'm almost certain that it's a "bug," but it wouldn't hurt to verify that there's nothing amiss in the code you've got prepped!

-d

@Coopyrightdmin
Copy link
Author

Coopyrightdmin commented May 27, 2016

Sorry for the delay, here a sample.
https://jsfiddle.net/vbqn5tL8/1/

@filipevb
Copy link

Hi there,

Any news about this enhancement?

Thank you.

@mishrarajesh
Copy link

Hi,
I still see this issue in the gridstack version 0.4.0. Any updates?

@adumesny
Copy link
Member

I think even dragging from one grid to another (non nested) is also busted (#834 using demo pages) but nested have other issues as well (like sizing content correctly, which I also filed). Those 2 issues are preventing me from using nested grids.

@adumesny
Copy link
Member

fix is in the next release ! the latest nested.html shows how to get it working between 2 nested grids.
Note: there is still a clipping of child during drag I need to figure out later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants