Hi Isomorphic,
we are having an issue in Firefox with that image canvas item again.
Now if the imageType is "normal" and we specify a big prompt, the height of the form item is rendered too big. And the height of the form item grows as the prompt gets longer.
This happens only first time. If you refresh the page, the height is rendered normal (I guess because it gets the image from cache).
Clear browser cache and refresh, and you will see that height is too big again.
Please see standalone sample attached.
(It uses ..\smartclientSDK\examples\components\images\greenlight.gif from your examples).
Note:
1) If I remove overflow: "visible" or use "stretch" image type it will work.
But we cannot remove them because we use those settings for dynamic images.
2) Without prompt it works fine.
Version: SmartClient_SC_SNAPSHOT-2011-08-16
Browser: Firefox 5 under Windows 7.
we are having an issue in Firefox with that image canvas item again.
Now if the imageType is "normal" and we specify a big prompt, the height of the form item is rendered too big. And the height of the form item grows as the prompt gets longer.
This happens only first time. If you refresh the page, the height is rendered normal (I guess because it gets the image from cache).
Clear browser cache and refresh, and you will see that height is too big again.
Please see standalone sample attached.
(It uses ..\smartclientSDK\examples\components\images\greenlight.gif from your examples).
Note:
1) If I remove overflow: "visible" or use "stretch" image type it will work.
But we cannot remove them because we use those settings for dynamic images.
2) Without prompt it works fine.
Version: SmartClient_SC_SNAPSHOT-2011-08-16
Browser: Firefox 5 under Windows 7.
Code:
<HTML><HEAD> <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> </HEAD><BODY BGCOLOR='papayawhip' MARGINHEIGHT=0 MARGINWIDTH=0 LEFTMARGIN=0 TOPMARGIN=0> <!-------------------------- Example code starts here ----------------------------> <SCRIPT> isc.ClassFactory.defineClass("CwImageItem", "CanvasItem"); isc.CwImageItem.addProperties({ init:function () { var canvasProperties = { src:this.src, width:this.width, height:this.height, form: this.form, overflow: "visible", imageType: this.imageType }; this.canvas = isc.ImgButton.create(canvasProperties); var res = this.Super("init", arguments); this.prompt = null; return res; } }); isc.HLayout.create({ left:50, top:75, members: [ isc.DynamicForm.create({ width: 1, height: 1, fields: [ {name:"textFld", title:"Text", type:"text"}, {name:"imageFld", _constructor: "CwImageItem", src:"greenlight.gif", width:7, height:7, prompt:"Very big prompt. Very big prompt. Very big prompt.", imageType:"normal", showTitle: false}, {name:"textFld2", title:"Text 3", type:"text"} ] }) ]}); </SCRIPT> </BODY> </HTML>
Comment