Hi,
I am migrating my application from 4.0 to 4.1 (20140616).
I have multiple forms with a ViewFileItem that shows image on the form (image is stored as BLOB in the DB and displayed inline).
The ViewFileItem spans multiple rows of the form as show in Fig1.
Previously the image was not cropped, in 4.1 the same code produces the image to be cropped according to first row height (Fig2).
Comparing the page code in both case (Fig3 vs Fig4) we can see that in 4.0, the height of the DIV that contains the image is set to 100px for the image while in 4.1, the height of the div container is set to the height of a single row, it does not inherit from the height set on the image.
This is the code to generate the ViewFileItem in both cases
Thanks for you help, Ben.
I am migrating my application from 4.0 to 4.1 (20140616).
I have multiple forms with a ViewFileItem that shows image on the form (image is stored as BLOB in the DB and displayed inline).
The ViewFileItem spans multiple rows of the form as show in Fig1.
Previously the image was not cropped, in 4.1 the same code produces the image to be cropped according to first row height (Fig2).
Comparing the page code in both case (Fig3 vs Fig4) we can see that in 4.0, the height of the DIV that contains the image is set to 100px for the image while in 4.1, the height of the div container is set to the height of a single row, it does not inherit from the height set on the image.
This is the code to generate the ViewFileItem in both cases
Code:
ViewFileItem field = new ViewFileItem(name);
field.setShowTitle(false);
field.setWidth("200");
field.setCanEdit(false);
field.setColSpan(4);
field.setShowFileInline(true);
field.setHeight("100");
field.setVAlign(VerticalAlignment.TOP);