Hi,
I use the following code from showcase:
And this is the result:

However, this is the result from showcase:

Something's wrong and my question is: what?
SmartGWT: v2.1, Firefox, Chrome, Eclipse
Thanks in adavance.
I use the following code from showcase:
Code:
public void onModuleLoad() {
Canvas canvas = new Canvas();
DragLabel dragTranslucent = new DragLabel("Translucent", 50);
dragTranslucent.setDragAppearance(DragAppearance.TARGET);
dragTranslucent.setDragOpacity(60);
canvas.addChild(dragTranslucent);
DragLabel dragShadow = new DragLabel("Shadow", 200);
dragShadow.setDragAppearance(DragAppearance.TARGET);
dragShadow.setShowDragShadow(true);
//TODO: dragShadow.setDragShadowDepth(8);
canvas.addChild(dragShadow);
DragLabel dragOutline = new DragLabel("Outline", 350);
dragOutline.setLeft(350);
dragOutline.setDragAppearance(DragAppearance.OUTLINE);
canvas.addChild(dragOutline);
canvas.draw();
}
public static class DragLabel extends Label {
public DragLabel(String contents, int left) {
setTop(50);
setLeft(left);
setContents(contents);
setAlign(Alignment.CENTER);
setPadding(4);
setShowEdges(true);
setBackgroundColor("#EEEEEE");
setKeepInParentRect(true);
setCanDragReposition(true);
}
}

However, this is the result from showcase:

Something's wrong and my question is: what?
SmartGWT: v2.1, Firefox, Chrome, Eclipse
Thanks in adavance.
Comment