Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bugs/regression with linePattern in Drawing module

    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

    Code:
     
    isc.DrawOval.create({
        autoDraw: true,
        drawPane: mainPane,
        left: 50,
        top: 300,
        width: 100,
        height: 100,
        canDrag:true,  
        linePattern:"shortdash"
    });
    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:
    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);
    }
    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
    Attached Files
    Last edited by genev; 16 Apr 2012, 10:36.

    #2
    3. There is one more issue: in the DrawLabel contents string all unicode characters are drawn as hex strings (such as "& #9792;") instead of being shown as actual characters. This is reproducible on all major browsers with SmartClient pro 8.2.

    Any chance any of those issues will be fixed in 8.3 release?

    thanks,
    - Gene

    Comment


      #3
      #3 may be a native limitation of <canvas>. What browser(s) are you seeing this in?

      Please check #1 / #2 against 8.3d (see smartclient.com/builds).

      Comment


        #4
        Issue #1: Shapes can only be drawn with solid lines. - it's still reproducible with SmartClient_v83p_2013-01-21_Pro.

        Issue #2 is fixed.

        thanks,
        - gene

        Comment

        Working...
        X