There are several bugs in the way linePattern property is handled.
Issue #1: Shapes can only be drawn with solid lines.
This can be reproduced by modifying this example: http://www.smartclient.com/docs/8.2/...l#ShapeGallery
Adding linePattern:"shortdash" has no effect, the circle is still drawn with the solid line.
This used to work in 7RC2 and 8.0.
SmartClient 8.2 Pro.
Browsers: Chrome 16, FF9, IE7.
-----------------------------------------------------------
Issue #2: Dynamically changing line pattern to anything other than solid pattern sometimes causes broken lines on non-MS browsers.
Please see the attachments that demonstrate the problem.
When the line style is solid, the radial lines are straight. When the line pattern is dashed/shortdash, etc, most of the lines become contorted.
The code below is being called when user changes the line pattern value:
This second issue is reproducible on FF9, Chrome 16, Maxthon 3, and on Safari 5.1.2. But it works fine on IE7.
thanks,
- Gene
Issue #1: Shapes can only be drawn with solid lines.
This can be reproduced by modifying this example: http://www.smartclient.com/docs/8.2/...l#ShapeGallery
Code:
isc.DrawOval.create({ autoDraw: true, drawPane: mainPane, left: 50, top: 300, width: 100, height: 100, canDrag:true, linePattern:"shortdash" });
This used to work in 7RC2 and 8.0.
SmartClient 8.2 Pro.
Browsers: Chrome 16, FF9, IE7.
-----------------------------------------------------------
Issue #2: Dynamically changing line pattern to anything other than solid pattern sometimes causes broken lines on non-MS browsers.
Please see the attachments that demonstrate the problem.
When the line style is solid, the radial lines are straight. When the line pattern is dashed/shortdash, etc, most of the lines become contorted.
The code below is being called when user changes the line pattern value:
Code:
var xyStart = new Array(2), xyEnd=new Array(2); for(var i=1; i<13; i++){ item = dp1.drawItems[i]; xyStart=pointOnCirlce((i-1)*30, inner_circle, centerX, centerY, 0); xyEnd = pointOnCirlce((i-1)*30, outer_circle, centerX, centerY, 0); item.setStartPoint(xyStart[0], xyStart[1]); item.setEndPoint(xyEnd[0], xyEnd[1]); item.setLineColor(lineColor); item.setLinePattern(linePattern); item.setLineWidth(lineWidth); }
thanks,
- Gene
Comment