SmartGwtPower 4.0p Build 2013-11-20, FF 25, Crome 34
I use a DrawPane for visualization. The DrawPane contains a various range of DrawItems, e.g. DrawTriangle, DrawRect, DrawImage, DrawPolygon, com.smartgwt.client.widgets.Label.
I use the setRotation/rotate method of the DrawPane, to rotate the figure, it works fine with SmartGwt Power 4.0p Build 2013-11-20, the DrawPane itself and the content is rotated as expected.
Since we switch to a build of SmartGwtPower 4.0p from 2014-02-24, we got a surprise: with the same call, the DrawPane itself and the Label are no longer rotated, but the DrawItems rotates.
The same is when using SmartGwtPower 4.1p from 2014-03-23.
I use a DrawPane for visualization. The DrawPane contains a various range of DrawItems, e.g. DrawTriangle, DrawRect, DrawImage, DrawPolygon, com.smartgwt.client.widgets.Label.
I use the setRotation/rotate method of the DrawPane, to rotate the figure, it works fine with SmartGwt Power 4.0p Build 2013-11-20, the DrawPane itself and the content is rotated as expected.
Since we switch to a build of SmartGwtPower 4.0p from 2014-02-24, we got a surprise: with the same call, the DrawPane itself and the Label are no longer rotated, but the DrawItems rotates.
The same is when using SmartGwtPower 4.1p from 2014-03-23.
Code:
public void onModuleLoad()
{
VLayout module = new VLayout();
module.setWidth100();
module.setHeight100();
module.setBackgroundColor("yellow");
DrawPane drawPane = new DrawPane();
drawPane.setRect(150, 150, 400, 250);
drawPane.setBackgroundColor("#CCCCCC");
drawPane.setCanDrag(true);
drawPane.setRotation(30);
// drawPane.rotate(30);
module.addChild(drawPane);
DrawRect rectangle = new DrawRect();
rectangle.setRect(50, 50, 150, 100);
rectangle.setLineWidth(3);
rectangle.setFillColor("red");
rectangle.rotateTo(15);
drawPane.addDrawItem(rectangle, true);
com.smartgwt.client.widgets.Label label = new Label();
label.setRect(100, 100, 100, 20);
label.setOverflow(Overflow.HIDDEN);
label.setAutoFit(true);
label.setAlign(Alignment.CENTER);
String contents =
"<div style=\"white-space:nowrap;color:blue;font:bold 30pt Arial;\">Rotated text</div>";
label.setContents(contents);
drawPane.addChild(label);
RootPanel.get("moduleContainer").add(module);
}