Joao Goncalves created FOP-3307:
-----------------------------------
Summary: Scale-to-fit not respected when image inside table cell
Key: FOP-3307
URL: https://issues.apache.org/jira/browse/FOP-3307
Project: FOP
Issue Type: Bug
Reporter: Joao Goncalves
Attachments: test (19).foWhen an image is inside a table, and we set the width attribute to “scale-to-fit”, FOP will ignore the table cell width and use the page width instead. This will cause the image to overflow the table cell. Replication FO: [^test (19).fo] !https://media-cdn.atlassian.com/file/55bd103f-bfde-452b-b138-e75d94379d5c/image/cdn?allowAnimated=true&client=7c790d7d-75da-434e-96fe-1f26bdd0554a&collection=&height=125&max-age=2592000&mode=full-fit&source=mediaCard&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI3Yzc5MGQ3ZC03NWRhLTQzNGUtOTZmZS0xZjI2YmRkMDU1NGEiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpmaWxlOjQ4OGIxYmM1LTNlZTgtNGQzNS1hYjYxLTA3ZmI2MDFlYTMxYyI6WyJyZWFkIl0sInVybjpmaWxlc3RvcmU6ZmlsZTpmMjcwN2FkYi02ZTQ1LTRlNWMtYWFlMS03MmU4YmVjY2I1YTUiOlsicmVhZCJdLCJ1cm46ZmlsZXN0b3JlOmZpbGU6NWZlYThjNjYtYWIwYi00MDI3LWE5NWQtODQ4ODJlZjJjNjA5IjpbInJlYWQiXSwidXJuOmZpbGVzdG9yZTpmaWxlOjIyNzdkZmI5LWYwOTQtNDE4OS1iNGU4LTYyYjA2ZmYyN2RkMiI6WyJyZWFkIl0sInVybjpmaWxlc3RvcmU6ZmlsZTo1NWJkMTAzZi1iZmRlLTQ1MmItYjEzOC1lNzVkOTQzNzlkNWMiOlsicmVhZCJdfSwiZXhwIjoxNzc1MTUzMzAwLCJuYmYiOjE3NzUxNTI0MDAsImFhSWQiOiI3MTIwMjA6YjBiYTJjZjMtMDZjOS00OTU1LWJjZWQtYzJkMWY1ZDE5ZWM0IiwiaHR0cHM6Ly9pZC5hdGxhc3NpYW4uY29tL2FwcEFjY3JlZGl0ZWQiOmZhbHNlLCJhdXRoVHlwZSI6InNlc3Npb24ifQ.8aPAtNOMXhmG9V_Ux7ITeT8Pv-Ne-8dOIGWIubscPWc&width=671#media-blob-url=true&id=55bd103f-bfde-452b-b138-e75d94379d5c&clientId=7c790d7d-75da-434e-96fe-1f26bdd0554a&contextId=&collection=! -- This message was sent by Atlassian Jira (v8.20.10#820010)
