Hi all
I have an imagemedia field on a form which has scrollbars set to never, whose maximum pixel dimensions are the same maximum dimensions as my field. When I view the image in a popup window, it looks fine, but if I printed it (the same form), it ignores the proportions and stretches the image vertically or horizontally. What am I doing wrong?
I’m using Servoy 4.1.5 on a Mac with Java 1.6.0_17.
Thanks
Bevil
Hi Bevil,
Are the scroll bars set to never on the field or form? What do you mean by “maximum pixel dimensions” - not the actual sizes of the form/img field in designer?
From what I know, setting “never” to scroll bars on the field will result in stretching.
Can you post a small sample solution or some screen shots that show this?
Hi Andrei
I filed a case today #281363 which is very much alike this problem I guess…
Hi Andrei
If I don’t set the scrollbars to never, it stretches in screen view (didn’t test it with printing, but not really interested if it then is viewed distorted). By maximum pixel dimension I mean that if my field is 200 x 200 pixels, then my image will have been resized to a maximum of 200 width or 200 height, but if it maintains proportions, it simply puts transparent strips down the sides, or across the top and bottom to deal with the reduced width or height. The point is that this works fine in view on screen, but stretches when I print…
Sounds like Marc has a similar problem so thankfully its not just me ![Smile :)]()
Best
Bevil
Hi Bevil,
just found out the ‘trigger’ which was bugging me:
my behaviour is incorrect when I set my border to ‘line’ and the thickness to ‘0’.
Your problem may occur the same way: can it be that you use another css or border setting on your print form?
try set your border thickness to 1…
Hope this helps
mboegem:
Hi Bevil,
just found out the ‘trigger’ which was bugging me:
my behaviour is incorrect when I set my border to ‘line’ and the thickness to ‘0’.
Your problem may occur the same way: can it be that you use another css or border setting on your print form?
try set your border thickness to 1…
Hope this helps
We fix this problem, will be included in 5.1.2 . Not sure it’s the same issue. Either wait for 5.1.2 to try or add a case and we’ll check if your issue is still there.
Hi Marc
This was exactly it. If I have no border it doesn’t stretch. This must be a bug…
In my case it is Servoy 4.1.5, can this be fixed in 4 too please…
Thunder:
Hi Marc
This was exactly it. If I have no border it doesn’t stretch. This must be a bug…
In my case it is Servoy 4.1.5, can this be fixed in 4 too please…
Ok, we merged this to 4.1, will be present in Servoy 4.1.6 .