dragula icon indicating copy to clipboard operation
dragula copied to clipboard

Empty container of white-spaces if dragged empty

Open randohinn opened this issue 8 years ago • 4 comments

Please only use GitHub issues for bug reports and feature requests.

  • [x] Read the contributing guidelines
  • [x] Bug reports containing repro steps are likely to be fixed faster
  • [x] Feature requests should be multi-purpose, describe use cases
  • [x] For support requests or questions, please refer to our Slack channel

There should be a way to force dragula to not leave whitespaces, if a container gets all of it's contents dragged out. This is useful for special styling for empty containers, using :empty.

Example: Currently, if you have something like this:

<div class="row">
    <div>Lorem ipsum....</div>
    <div>Lorem ipsum....></div>
</div>
<div class="row">
</div>

and you initialize dragula on the row elements, and then drag everything into the second row, the first one is not really empty - it looks to be, but there are whitespace characters left behind in it, and thus it is not picked up by :empty in CSS.

randohinn avatar Aug 23 '16 08:08 randohinn

Please add some description.

jawwadfarooq avatar Aug 23 '16 10:08 jawwadfarooq

please support as i am observing the same issue

danialumair avatar Apr 23 '18 09:04 danialumair

i found the fix from some blog actually the empty list make the container also of height ZERO , so need to change the container height following is the code i used in ionic 3 html and put class="mcol" which contains only height = 100%

//  <ion-list class="mcol" [dragula]='"my-bag"' [dragulaModel]="q2">
  //  <ion-item *ngFor="let item of q2">
    //	{{item.src}} 
 

.mcol { height: 100%; }

danialumair avatar Apr 23 '18 12:04 danialumair

Giving height to the container works.

WahabShah23 avatar May 08 '18 07:05 WahabShah23