Bug Hunting Session
Bug 94274 - Inconsistent behaviour of text wrap around image vs shape
Summary: Inconsistent behaviour of text wrap around image vs shape
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.4.3 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2015-09-16 12:22 UTC by Katarina Behrens (CIB)
Modified: 2017-10-17 14:49 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katarina Behrens (CIB) 2015-09-16 12:22:38 UTC
Have a text document, possibly with lot of text ready.

As per subject, the following scenario works:

1. Insert -> Image
2. Drag image somewhere to the middle of text block

=> Notice that 
   i) text wraps around the image somehow
   ii) Wrap sidebar panel (in Properties deck) appears

The following scenario however doesn't work:

1. Insert a shape (e.g using a toolbar button Standard Shapes, or one from Drawing toolbar, if active)
2. Drag shape somewhere to the middle of the text block

=> Notice that
   i) text doesn't wrap around the shape at all. It is however possible to set wrap by going to Format -> Wrap menu and picking one of the options and then it wraps, it just doesn't happen automatically
   ii) Wrap sidebar panel doesn't appear
Comment 1 Yousuf Philips (jay) (retired) 2015-09-20 10:45:39 UTC
Hi Bubli,

So the behaviour of inserting a shape is that it is set to wrap Through, while when inserting an image is that it is set to Optimal wrap. It would be difficult to know what the most suitable wrap setting to have by default for shapes as we dont have any usage metrics data to tell us, but i think it is fine as its easy to change the wrap in the toolbar and context menu.

I checked MSO and WPS and they have it as Through, while Calligra has it set to Optimal.

We'd have to modify officecfg/registry/data/org/openoffice/Office/UI/Sidebar.xcu and add '              Writer,   Draw,    visible ;' to WrapPropertyPanel in order for the wrap content panel to appear, but we'd also have to hide the 3 new controls that were recently added to the section, as they are not applicable for shapes.