SmartClient_v82p_2012-06-06
Tested in Firefox 10, but possibly occurs in other browsers
When displaying an error icon next to the select item, the drop-down list does not accommodate the select item length. It seems that the drop-down list length is the same as before select item was decreased in size due to the error icon.
To replicate run the following code, click 'Submit' and open select item drop-down - you will see that it's much larger than the actual closed select item.
<HTML><HEAD><TITLE>Copy-Paste Issue</TITLE>
</HEAD>
<body class="pageBackground" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" scroll="no" style="overflow:hidden">
<SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT>
<SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=isomorphic/skins/Enterprise/load_skin.js></SCRIPT>
<SCRIPT>
isc.DynamicForm.create({
width: 500,
fields: [{
name: "shipTo", title: "Ship to", type: "select",
hint: "<nobr>Overnight shipping available for countries in bold</nobr>",
valueMap: {
"US" : "<b>United States</b>",
"CH" : "China",
"JA" : "Japan",
},
required:"true",
showErrorIcon: "true",
showErrorText:"false",
getErrorHTML: function() {return "<div><img src=\"http://localhost:8777/isomorphic/system/reference/skin/images/refresh_Over.png\"></div>";}
},
{name: "submitBtn", title: "Submit", type: "button", click: "form.validate()"}]
});
</script>
</BODY>
</html>
Tested in Firefox 10, but possibly occurs in other browsers
When displaying an error icon next to the select item, the drop-down list does not accommodate the select item length. It seems that the drop-down list length is the same as before select item was decreased in size due to the error icon.
To replicate run the following code, click 'Submit' and open select item drop-down - you will see that it's much larger than the actual closed select item.
<HTML><HEAD><TITLE>Copy-Paste Issue</TITLE>
</HEAD>
<body class="pageBackground" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" scroll="no" style="overflow:hidden">
<SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT>
<SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=isomorphic/skins/Enterprise/load_skin.js></SCRIPT>
<SCRIPT>
isc.DynamicForm.create({
width: 500,
fields: [{
name: "shipTo", title: "Ship to", type: "select",
hint: "<nobr>Overnight shipping available for countries in bold</nobr>",
valueMap: {
"US" : "<b>United States</b>",
"CH" : "China",
"JA" : "Japan",
},
required:"true",
showErrorIcon: "true",
showErrorText:"false",
getErrorHTML: function() {return "<div><img src=\"http://localhost:8777/isomorphic/system/reference/skin/images/refresh_Over.png\"></div>";}
},
{name: "submitBtn", title: "Submit", type: "button", click: "form.validate()"}]
});
</script>
</BODY>
</html>
Comment