ngx-smooth-dnd icon indicating copy to clipboard operation
ngx-smooth-dnd copied to clipboard

container style

Open bergran opened this issue 6 years ago • 4 comments

Hello mate, at first i want to tell you that you did a great work! I have a little problem with smooth-dnd-container. I would like to put his own style without parent div that style it. I say this because my container is not translating on orientation vertical good, i dont know if this is cause i'm using Angular material and styles from your library and AM has conflict.

asdf item is dragging but mouse doesnt show it and qwer item doesnt go top

image image

bergran avatar May 01 '18 18:05 bergran

If you can provide a repo for this issue I can check it. It's hard to tell what causing the problem, but probably it a css issue.

kutlugsahin avatar May 02 '18 08:05 kutlugsahin

Sorry, i cant share you all project because it's private but i share you a gist. Container that have smooth-dnd-container and smooth-dnd-draggable is state.component.

Angular material Version 5.2.4.

Edit: i forgot write that i overwrite class smooth-dnd-ghost to have z-index to 2 because cards from material design has z-index 1

bergran avatar May 02 '18 13:05 bergran

I have check the gist but all seems fine. Can you describe the problem a bit detailed. I still can not understand what is not working. Is it ghost item ? or the draggables in container does not reordered properly when you drag over them ?

kutlugsahin avatar May 02 '18 16:05 kutlugsahin

Yep, it's that you said, it dont reorder on vertical orientation but yes on horizontal. You know why?

bergran avatar May 02 '18 17:05 bergran