Bug 132711 - Text can't flow around frame/image anchored to page under certain conditions
Summary: Text can't flow around frame/image anchored to page under certain conditions
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap Paragraph
  Show dependency treegraph
 
Reported: 2020-05-05 11:19 UTC by R. Green
Modified: 2023-09-28 13:52 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer doc. showing problem with text flow around an image/frame (81.45 KB, application/vnd.oasis.opendocument.text)
2020-05-05 11:19 UTC, R. Green
Details
Simplified document (83.00 KB, application/vnd.oasis.opendocument.text)
2020-05-09 14:45 UTC, Dieter
Details
Sample with two frames and tabs with fill. (13.35 KB, application/vnd.oasis.opendocument.text)
2023-09-28 13:40 UTC, LeroyG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2020-05-05 11:19:25 UTC
Created attachment 160374 [details]
Writer doc. showing problem with text flow around an image/frame

Version: 6.4.2.2 (x64)
Build ID: 4e471d8c02c9c90f512f7f9ead8875b57fcb1ec3
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: threaded

1. Open the attached file. Observe pp. 2 and 6.

2. Note that "Frame/Image > Wrap > Top/Bottom" has been made large enough to reserve the whole page for the Frame/Image.

EXPECTED RESULT: Paragraph text should flow AROUND the Image/Frame page.

ACTUAL RESULT:  Paragraph text is not flowing around the Frame/Image correctly. Instead the whole paragraph block is being moved to the page AFTER the Frame/Image. NOTE: Ticking the Orphans box restores the correct flow.

The critical conditions for this behaviour are:

1. In "Paragraph style > Text Flow," Orphans is unticked, Widows is ticked.
2. In "Frame/Image > Wrap", Top/Bottom should be set so that Paragraph text cannot fit onto the same page as the Image/Frame and therefore, has to flow around it.
Comment 1 Dieter 2020-05-09 05:31:39 UTC
Just for clarification: Page 2 and 6 looks as expected, but problem is blank space on page 1 and 5, correct?
Comment 2 R. Green 2020-05-09 11:04:39 UTC
(In reply to Dieter from comment #1)
> Just for clarification: Page 2 and 6 looks as expected, but problem is blank
> space on page 1 and 5, correct?
That's correct.

And if you open the "Default (Paragraph) Style" dialog and, on the "Text Foow" tab, tick "Orphan Control", the problem will self-correct.
Comment 3 R. Green 2020-05-09 11:08:46 UTC
P.S. I forgot to mention in the opening post that this problem only seems to affect images/frames where the ANCHOR is set "To page."
Comment 4 Dieter 2020-05-09 14:45:16 UTC
Created attachment 160556 [details]
Simplified document

I confirm it with

Version: 7.0.0.0.alpha1+ (x64)
Build ID: 99c337d1d3831ce9d2c7dc1cbff713f4ac49d6ac
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win; 
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps to reproduce:

1. Open attached document.
2. See text on page 1 covers the whole page
3. Mark image on page 2 => Properties => Wrap => Change spacing bottom to 6,3 cm

Result: Blank space on page 1
Expected result: No change on page 1
Comment 5 Telesto 2020-08-11 13:04:52 UTC
Also in
3.5
Comment 6 Dieter 2022-08-10 14:31:33 UTC
Still present in

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 7 LeroyG 2023-09-28 13:40:19 UTC
Created attachment 189866 [details]
Sample with two frames and tabs with fill.

Two page sample (file made from scratch).
It seems that there are an interaction between the first frame (not anchored to page) and the tabs fill following the second frame (anchored to page).
Ctrl + F10 (Toggle Formatting Marks) solves the issue until the next reload.
Not an Skia issue.

Version: 7.6.0.2 (x86) / LibreOffice Community
Build ID: 41d6f628ba3f046f16b5fa9fa8db8d4c2ab3b582
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win
Locale: es-MX (es_MX); UI: en-US
Calc: threaded
Comment 8 LeroyG 2023-09-28 13:52:05 UTC
(In reply to Dieter from comment #4)
> Created attachment 160556 [details]
> 
> Result: Blank space on page 1
> Expected result: No change on page 1

Change the image size to fill the page (11 x 15 cm), set the image space wrapping to 0, and the gap in page 1 appear.

There is no gap in page 1, if you unmark the paragraph Widow control.