Announcement

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

    DrawRect.title alignment problem

    SmartClient Version: SNAPSHOT_v11.1d_2017-04-02/Enterprise Development Only (built 2017-04-02)

    Chrome, Safari, Firefox on OSX

    Hello, please try this test case:
    Code:
    var mainPane = isc.DrawPane.create({
        showEdges: true,
        width: "100%",
        height: "100%", backgroundColor: "white"
    });
    for (var x = 0; x < 20; x++) {
        for (var y = 0; y < 20; y++) {
            var commonProps = {
                autoDraw: true,
                drawPane: mainPane, lineColor: "#66bb6a",
                canDrag: false,
                titleRotationMode: "neverRotate"
            };
            isc.DrawRect.create({
                titleAutoFit: true, titleAutoFitMargin: 5,
                left: x * 31 + 31,
                top: y * 31 + 31,
                width: 30,
                height: 30,
                title: '' + (x + 1)
            }, commonProps);
        }
    }
    mainPane.show()
    you'll see that there's a problem with the title alignment in the DrawRects, it seems correct in the first 'row' and then they are progressively offset to the right:

    Click image for larger version

Name:	429737704_6509334465645061450.jpg
Views:	76
Size:	621.0 KB
ID:	243857

    actually the problem is present with or without titleAutoFit.

    #2
    This has been fixed in SC 11.1d, the only branch where it was a problem. It will be picked up by nightly builds dated 2017-04-06 and beyond.

    Comment


      #3
      I can confirm it's fixed, thank you very much

      Comment

      Working...
      X