gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

Problem with Internet Explorer (widget with scroll)

Open dani80vdt opened this issue 11 years ago • 6 comments

Hello I've a problem with Internet Explorer. When panel have got an internal scroll, I can't drop panel if I click on scroll Thanks for all Daniele

dani80vdt avatar Feb 11 '15 14:02 dani80vdt

Just tried this and looks like I have the same issue in IE...

Sent from my iPhone

On 11 Feb 2015, at 14:07, Daniele Bulgarelli [email protected] wrote:

Hello I've a problem with Internet Explorer. When panel have got an internal scroll, I can't drop panel if I click on scroll Thanks for all Daniele

— Reply to this email directly or view it on GitHub.

crashnick16 avatar Feb 11 '15 16:02 crashnick16

Can you provide a sample?

troolee avatar Feb 27 '15 05:02 troolee

dragproblem If appear a scroll, I can't drop the widget (only in internet explorer)

dani80vdt avatar Mar 03 '15 16:03 dani80vdt

If you are certain that the scroll bar is the cause of the issue then you could leverage the '.ui-draggable-dragging' class name and set the overflow: hidden; property to hide the scroll bar while dragging.

ascendantofrain avatar Mar 03 '15 16:03 ascendantofrain

Ok. This is a known issue with jQuery UI http://stackoverflow.com/questions/8793236/using-jquery-ui-draggable-how-to-avoid-drag-when-using-scrollbar

to avoid this bug you can do like so:

<div id="test" style="width: 200px; height: 100px; overflow: auto; 
        background: lightgoldenrodyellow">
    <div class="content">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. 
        Dolorem ea labore porro qui quibusdam voluptates. Atque 
        nulla odit placeat quidem recusandae repudiandae sed sint 
        soluta! Accusamus eaque est fugiat officiis?
    </div>
</div>

and

$('#test').draggable({
    handle: '.content'
});

To override draggable settings please check out gridstack options.

troolee avatar Mar 04 '15 07:03 troolee

It works!!!! Thanks a lot

dani80vdt avatar Mar 04 '15 13:03 dani80vdt