-
1. Re: e;image distortion
nickarls Oct 3, 2008 9:35 PM (in response to mdesignz)Typo, I have getHeight() for both height and width estimation, I'll also try to make a change to the keep the ratio better.
-
2. Re: e;image distortion
danielc.roth Oct 3, 2008 9:36 PM (in response to mdesignz)I think this is known, but I couldn't find the post in the forum.
-
3. Re: e;image distortion
nickarls Oct 3, 2008 9:42 PM (in response to mdesignz)That was when I fixed int/int rounding errors, now its copypaste-errors :-)
-
4. Re: e;image distortion
nickarls Oct 3, 2008 10:10 PM (in response to mdesignz)Committed.
Note that sizing the image is a little tricky - JExcelAPI works in rowspans and colspans of cells and as long as they are standard sized everything is fine. Then you apply e.g. autosize to column and it will twist the ratio since the row height is still the same but the width of some of the columns the image is spanning has increased. I'll try to see what could be done...
-
5. Re: e;image distortion
mdesignz Oct 3, 2008 11:52 PM (in response to mdesignz)Thanks for doing this! The ideal case would be to either specify one or more dimensions, or maintain the aspect ratio if the size did change. In my case, I have a silly user requirement which sets one of the column widths where the image appears, so I can diddle the columnSpan to make it look okay. Once again, thanks for all of your help!