Hi, I’m trying to make an unstored calcul media field to act like a “normal” media field: I need to see the image grow or shrink if the field is stretched or reduced.
The calc is showing the image accessing it using a syntax like
return application.getServerURL()+'/images_folder/'+filename
I can see the image, but it doesn’t resize.
I cannot use a label, because this would show me the text of the path and not the image itself.
I tried with an actual media column and it works as expected.
Any suggestion?
Hi Ric,
Have you tried setting the scrollbars of the field to none ?
Ciao, Robert
Yes. Both scroolbars are set to never.
when using a image_field with media options (resize options) set there shouldnt be a difference between a url based resource or a byte resource as far as i can see quickly.
So if this doesnt work for you, create a sample and make a case.
Thanks Johan,
but what you mean with “resize options”? I can set them for a label, but how do I set them on a media field? I tried to adjust anchors and scrollbars with no result.
I’m on Servoy 4.1.4
ah yes with a image media field you only have 2 options:
1> both scrollbars to NEVER will result in a reduce, keep aspect
2> anything else is just keep original
You could use a Label but then in the calc you already have to load the byte your self with the http plugin…