[solved] drag & drop with scrollpane issue
Posted: Mon Oct 12, 2009 09:39
I was playing a bit with your DragDropDemo sample.
I wanted to add a scrollpane under the slots so that the window can be resized and to be able to add more slots then the windows can display.
However I encountered 2 issues:
- it is not possible to drop an item to a slot which is intially out of the window.
e.g I have a dragcontainer is my first slot. I can drag and drop it in any slot displayed in my window.
Now i move the scrollbar of the scrollpane to show hidden slots. Then if I try to drag and drop the dragcontainer to a previously
hidden slot it will not work.
- I guess the seocnd issue is related: if i have a dragcontainer into a slot and then I resize my window to hide the slot where my container was then the container will totally disappear.
Rincevent
I wanted to add a scrollpane under the slots so that the window can be resized and to be able to add more slots then the windows can display.
However I encountered 2 issues:
- it is not possible to drop an item to a slot which is intially out of the window.
e.g I have a dragcontainer is my first slot. I can drag and drop it in any slot displayed in my window.
Now i move the scrollbar of the scrollpane to show hidden slots. Then if I try to drag and drop the dragcontainer to a previously
hidden slot it will not work.
- I guess the seocnd issue is related: if i have a dragcontainer into a slot and then I resize my window to hide the slot where my container was then the container will totally disappear.
Rincevent