I seem to only be able to set the parameters of an Img when it is created,
Then later, when the values have been changed for zoom in/out etc...
Does nothing. My shins are bloody from bumping into all this problems like this. Seems so simple, but isn't..... Frustrated to the point of finding another toolset.
Code:
var img = isc.Img.create({
left:0, right:0,
width: "100%",
height:"100%",
imageHeight: imageHeight,
imageWidth: imageWidth,
imageType: "center",
overflow: "auto",
border: "1px solid gray",
src: record.front,
shadowDepth: 10,
showShadow: true,
autoDraw: false
});
Code:
img.imageHeight = imageHeight;
img.imageWidth = imageWidth;
img.imageType = imageType;
img.resetSrc();
Comment