Drag And Drop - Div overflow: scroll;

Asked

Viewed 163 times

0

I’m using Drag And Drop inside a div with CSS: overflow:scroll. As there are many dice the vertical bar is always active but when trying to drag the elements of this div a horizontal bar appears and the div increases its size and the element is invisible however I can take it to the finish point (in this case Fullcalendar.io).

Element I wish to drag:

 <span class='fc-event' ID="ooooo" onclick="controle(this)"><%# Eval("Name") %></span>  
  • Try to put overflow-x:Hidden on the father where the list is inside. Also check if the width of this div is not min-width, it probably needs a width-only or max-width value determined in order not to be varying that width

  • It didn’t work. !

  • So it must be something in JS and not in CSS. But somehow you hate it and you edit the question with if code !

  • You can create an example here so we can see the effect you refer to?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.