1. SmartClient Version: v12.0p_2018-09-15/Pro Deployment (built 2018-09-15)
2. Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
3. N/A
4. N/A
5. N/A
6. Code follows
Showcase sample Forms.Layout.Titles was used as the basis for the sample code demonstrating the issue.
Code sample 1 produces screenshot 1 and Code sample 2 produces screenshot 2.
Code sample 2 differs from Code sample 1 by two lines:
The addition of numCols : 3 to Code sample 2 results in the second date item title being no longer clipped.
Can you confirm that this is a bug. And if so, in what version will that fix be included?
CODE SAMPLE 1
SCREENSHOT 1

CODE SAMPLE 2
SCREENSHOT 2
2. Build identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
3. N/A
4. N/A
5. N/A
6. Code follows
Showcase sample Forms.Layout.Titles was used as the basis for the sample code demonstrating the issue.
Code sample 1 produces screenshot 1 and Code sample 2 produces screenshot 2.
Code sample 2 differs from Code sample 1 by two lines:
Code:
numCols : 3 title : 'End date whose title is incorrectly NOT clipped'
Can you confirm that this is a bug. And if so, in what version will that fix be included?
CODE SAMPLE 1
Code:
isc.DynamicForm.create({
ID: "exampleForm",
titleOrientation : 'top',
clipItemTitles : true,
colWidths : [150, 150, 300],
cellPadding : 5,
width : 600,
fields :
[
{
name : 'metadata',
title : 'Metadata',
required : true,
height : 300,
width : 600,
colSpan : 3
},
{
name : 'startDate',
editorType : 'DateItem',
useTextField : true,
showTitle : true,
required : true,
title : 'Start date whose title is correctly clipped'
},
{
name : 'endDate',
editorType : 'DateItem',
useTextField : true,
showTitle : true,
required : true,
title : 'End date whose title is correctly clipped'
}
]
});
isc.Button.create({
ID: "swapButton",
height: 36, margin: 2,
title: "Swap titles",
click: function () {
exampleForm.setTitleOrientation(exampleForm.titleOrientation == "top" ? "left" : "top");
}
});
isc.HLayout.create({
members:[exampleForm, swapButton]
});
CODE SAMPLE 2
Code:
isc.DynamicForm.create({
ID: "exampleForm",
titleOrientation : 'top',
clipItemTitles : true,
colWidths : [150, 150, 300],
[B]numCols : 3[/B],
cellPadding : 5,
width : 600,
fields :
[
{
name : 'metadata',
title : 'Metadata',
required : true,
height : 300,
width : 600,
colSpan : 3
},
{
name : 'startDate',
editorType : 'DateItem',
useTextField : true,
showTitle : true,
required : true,
title : 'Start date whose title is correctly clipped'
},
{
name : 'endDate',
editorType : 'DateItem',
useTextField : true,
showTitle : true,
required : true,
title : 'End date whose title is incorrectly NOT clipped'
}
]
});
isc.Button.create({
ID: "swapButton",
height: 36, margin: 2,
title: "Swap titles",
click: function () {
exampleForm.setTitleOrientation(exampleForm.titleOrientation == "top" ? "left" : "top");
}
});
isc.HLayout.create({
members:[exampleForm, swapButton]
});
Comment