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:
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:

actually the problem is present with or without titleAutoFit.
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()
actually the problem is present with or without titleAutoFit.
Comment