0

Panel to Panel drag N drop

asked 2011-05-15 00:24:03 +0800

dagarwal82 gravatar image dagarwal82
246 4

updated 2011-05-15 00:30:04 +0800

<grid>
   <rows>
   </rows>
</grid>

In my composer I am creating row and adding panel to those row (4-5 panel per row). Inside panel I am embedding JSChart (I am showing 40 real time charts around per screen {with excellent performance :) } ).

Problem is, when I drag one panel and tries to drop on the another panel , it is only able to be dropped at the corner of the image (assume panel has 4px padding to the images , so a corner of panel is being shown, so I am able to drop only to the part of panel which is visible and not a more elegant drop where I am dropping over the image which is inside the panel itself). I not sure If I am clear?

A small code snippet.


Panel panel = new Panel();
panel.setDraggable("ccol");
panel.setDroppable("ccol");

Panelchildren pc = new Panelchildren();
pc.setParent(panel);

pc.appendChild(new Image(new AIimage("...."));

panel.addEventListener(.....);

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-07-10 23:19:35 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

i think you need to add Droppable to the image

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-05-15 00:24:03 +0800

Seen: 298 times

Last updated: Jul 10 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More