The following code works in 3.0.1, but does not in r1057:
RootPanel absolutePanel = RootPanel.get();
VerticalPanel dragAndDropPanel = new VerticalPanel();
absolutePanel.add(dragAndDropPanel);
PickupDragController dragController = new PickupDragController(absolutePanel, false);
// change to a value >0 to make this work
dragController.setBehaviorDragStartSensitivity(0);
dragController.registerDropController(new IndexedDropController(dragAndDropPanel));
for (int i = 0; i < 50; i++) {
Label label = new Label("label");
FocusPanel focusPanel = new FocusPanel();
focusPanel.getElement().getStyle().setBackgroundColor("red");
HorizontalPanel horizontalPanel = new HorizontalPanel();
horizontalPanel.add(label);
final Hyperlink removeColumnLink = new Hyperlink();
removeColumnLink.setText("click");
removeColumnLink.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
removeColumnLink.setText("THANK YOU!");
}
});
horizontalPanel.add(removeColumnLink);
focusPanel.add(horizontalPanel);
dragAndDropPanel.add(focusPanel);
dragController.makeDraggable(focusPanel);
}
Original issue reported on code.google.com by fredsa@google.com on 17 Dec 2010 at 1:29
Original issue reported on code.google.com by
fredsa@google.com
on 17 Dec 2010 at 1:29