Announcement

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

    Title of DrawRect is not vertically centered

    In a DrawRect with a title, the title text is not correctly vertically centered in the rectangle in Chrome 79.
    However, this used to work correctly (the text was correctly vertically aligned) in older versions of Chrome (for example Chrome 67).

    A) Please try the following code in the Feature Explorer version 12 in the latest Chrome version: https://www.smartclient.com/smartcli...d=ShapeGallery
    B) Please try the following code in the Feature Explorer version 12 in a portable version of Chrome.

    See figure drawRect_title-01.png for examples of this code rendered in Chrome 79 (broken), 72 (broken), and 67 (works); and in IE 11 (works).

    Code:
    var mainPane = isc.DrawPane.create({
        autoDraw: false,
        showEdges: true,
        width: 720,
        height: 475
    });
    
    var commonProps = {
        autoDraw: true,
        drawPane: mainPane,
        canDrag: true,
        titleRotationMode: "neverRotate"
    };
    
    isc.DrawRect.create({
        left: 30,
        top: 30,
        width: 120,
        height: 30,
        fillColor: "#AAA",
        lineColor: "#00F",
        lineWidth: 1,
        title: "yABCabc123ygq",
        showTitleLabelBackground: true,
        titleLabelPadding: 1
    }, commonProps);
    
    isc.HStack.create({
        width: "100%",
        members: [mainPane]
    });
    Browser: Chrome 79
    SmartClient versions: 11.1 and 12.0 (We use SmartClient 11.1 in our production code.)

    Thanks much.

    Click image for larger version

Name:	drawRect_title-01.png
Views:	51
Size:	3.1 KB
ID:	260592
    Attached Files

    #2
    We're looking into this now.

    Comment


      #3
      This should be fixed back to SC 10.1p in today's nightly builds, dated 2020-01-07 and beyond.

      Comment

      Working...
      X