Bug 92857 - HTML Filter: Embedded images before tables breaks layout of tables
Summary: HTML Filter: Embedded images before tables breaks layout of tables
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.4.4.3 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: HTML-Import
  Show dependency treegraph
 
Reported: 2015-07-21 15:36 UTC by Stephanie Miller
Modified: 2020-12-21 14:58 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
With image (broken table) (33.85 KB, text/html)
2015-07-21 15:36 UTC, Stephanie Miller
Details
Without image (works) (22.72 KB, text/html)
2015-07-21 15:37 UTC, Stephanie Miller
Details
With image as converted (23.17 KB, application/vnd.oasis.opendocument.text)
2015-07-21 15:38 UTC, Stephanie Miller
Details
Without image as converted (12.34 KB, application/vnd.oasis.opendocument.text)
2015-07-21 15:38 UTC, Stephanie Miller
Details
printscreen (116.49 KB, image/png)
2015-07-31 17:12 UTC, raal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephanie Miller 2015-07-21 15:36:50 UTC
Created attachment 117362 [details]
With image (broken table)

If you have an embedded base64 encoded image before a wide table with width 100% in your html and you import it the table is not resized correctly and runs off the edge of the page.

Removing the image causes the table to format correctly.

I have also tried this last week with a copy freshly built out of git.  Same problem.

See attached html files for the broken and correct states.
Comment 1 Stephanie Miller 2015-07-21 15:37:14 UTC
Created attachment 117363 [details]
Without image (works)
Comment 2 Stephanie Miller 2015-07-21 15:38:09 UTC
Created attachment 117364 [details]
With image as converted
Comment 3 Stephanie Miller 2015-07-21 15:38:30 UTC
Created attachment 117365 [details]
Without image as converted
Comment 4 Buovjaga 2015-07-31 11:33:42 UTC
After importing attachment 117362 [details] to LibO, I noticed the table behaves differently on different zoom levels, when you zoom out. It sometimes turns to fixed width instead of filling the whole page width. It never ran off the edge of the page for me, though.
So I don't get the result in attachment 117364 [details]

Ubuntu 15.04 64-bit 
Version: 4.4.4.3
Build ID: 40m0(Build:3)
Locale: en_US.UTF-8

Version: 5.1.0.0.alpha1+
Build ID: 902255645328efde34ddf62227c8278e8dd61ff0
TinderBox: Linux-rpm_deb-x86_64@70-TDF-dbg, Branch:master, Time: 2015-07-30_03:52:32
Locale: en-US (en_US.UTF-8)

Win 7 Pro 64-bit, Version: 4.4.4.3
Build ID: 2c39ebcf046445232b798108aa8a7e7d89552ea8
Locale: fi_FI
Comment 5 raal 2015-07-31 17:12:55 UTC
Created attachment 117567 [details]
printscreen

I can confirm with Version: 5.1.0.0.alpha1+
Build ID: 2d9db406d301d722649ca539cacad823b89191ca
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2015-07-31_00:59:07
Comment 6 QA Administrators 2016-09-20 10:20:51 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2020-12-09 03:39:20 UTC Comment hidden (obsolete)
Comment 8 Stephanie Miller 2020-12-21 14:58:14 UTC
Using the newest dev build I can confirm this is no longer a problem.

Version: 7.1.0.0.beta1
Build ID: 828a45a14a0b954e0e539f5a9a10ca31c81d8f53
CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded