Login Register

DnD List Scroll - HELP

Hi

I am creating a scriollable list using the following code

<div style="float: left; margin: 5px;">
                        <h3>Source 2</h3>
                       
                        <div dojoType="dojo.dnd.Source" jsId="c2" singular="true" style="height: 150px; width:100px;">
                                <div class="dojoDndItem">1</div>
                                <div class="dojoDndItem">2</div>
                                <div class="dojoDndItem">3</div>
                                <div class="dojoDndItem">4</div>
                                <div class="dojoDndItem">5</div>
                                <div class="dojoDndItem">6</div>
                                <div class="dojoDndItem">7</div>
                                <div class="dojoDndItem">8</div>
                                <div class="dojoDndItem">9</div>
                                <div class="dojoDndItem">10</div>
                                <div class="dojoDndItem">11</div>
                                <div class="dojoDndItem">12</div>
                        </div>
                </div>

Its working fine and the scroll bar also appears but if i want to Drag and Drop the item 1 to position 12 then scrolling is not done automatically while dragging and i have to do the same naually using the mouse wheen or keboard to scroll the down .

Can this scrolling be enabled automatically i e on drag

Dino

At the moment we don't

At the moment we don't support the auto-scroll of individual containers on DnD, only the window auto-scroll. The reason is prosaic — different browsers have different bugs with it. The code is there but not used because of multiple problems in some configurations. Sorry.

for ie6

HI

thanks for replying eugene can u pls help me as to how to achieve this in ie 6

Dino

In the trunk...

I just committed the code that scrolls elements automatically. Retrieve the trunk and try if it works for you.