Issue 50398 - Size issues when embedding Draw object in Writer
Summary: Size issues when embedding Draw object in Writer
Alias: None
Product: Draw
Classification: Application
Component: ui (show other issues)
Version: OOo 2.0 Beta
Hardware: All All
: P3 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
: 111821 (view as issue list)
Depends on:
Reported: 2005-06-06 19:54 UTC by metrol
Modified: 2017-05-20 11:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

sxd to reproduce problem (442.29 KB, application/vnd.sun.xml.draw)
2005-06-09 10:26 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description metrol 2005-06-06 19:54:40 UTC
This may be more of a feature type of thing rather than a defect, but seeing as
how this isn't working as expected I guess it's a defect to me.

I've created a small diagram in Draw.  Nothing too fancy, just some boxes with
connecters between them.  I save the drawing out, then attempt to embed it into
a Writer document with "Insert > Object > OLE Object".

The drawing shows up, but with a huge amount of white space around it.  Attempts
to resize the object alters the image itself, rather than just the box that
contains the image.

The expected results would have the image zoom and box size independant of each
other, with the ability to center on any portion of the objct within the window.

At this time the only work around I have found is to export the draw object as a
PNG file, manually crop the image, then embed as an image.  This is less than
optimal as changes to the drawing aren't reflected in the destination document.

I've tested this on both FreeBSD and Windows with OOo1.9m101.
Comment 1 wolframgarten 2005-06-07 08:15:43 UTC
With the OLE in edit mode (double click) you can resize the content by dragging
it . The content size can aslo be altered by the size or tzzomstage you save the
original file. With the OLE in select mode you can resize and move the OLE window.
Comment 2 wolframgarten 2005-06-07 08:16:21 UTC
Sorry, "tzzomstage" should have been "zoomstage".
Comment 3 metrol 2005-06-07 20:07:00 UTC
wg, I now see what you mean.  Although this can be tweaked on to make work, this
really shouldn't be considered optimal.

By default, when inserting this drawing as an sxd file it takes the entire width
of the page, beyond the margins.  I then converted the drawing to an odg file,
which now takes up ALL the page when inserted, vertical and horizontal. 
Starting with a single empty page, inserting a 3 inch high drawing will result
in now having 3 pages with the drawing on page 2.

OOo should at least be making some attempt at a reasonable guess as to how to
fit it on the page.  I doesn't need to be perfect, but somewhere in the ballpark
 should be what is happening here.  At the very least it should fit within the
margins of the destination document.

Lastly, I have to address a usability issue.  Now that you've explained to me
that the window when in edit mode can be re-sized I get it.  I would have NEVER
gotten it without your explaining this.  Maybe I'm just not too bright, but
those 1x1 pixel handles didn't exactly shout, "Hey, I can resize this thing!". 
Plus there's the additional ruler I can't figure out how to turn off adding
visual noise to the picture.

With that being said, I would like to reopen this bug.  Perhaps it shouldn't be
classified as a defect, but it should be fixed.
Comment 4 wolframgarten 2005-06-09 09:13:38 UTC
I think the problem of the bad fitting in the writer doc is more a problem fo
the writer application. I will reassign this to ask.
Hello, I think this might be a writers problem of how the OLE is inserted. Right?
Comment 5 michael.ruess 2005-06-09 10:25:27 UTC
MRU->WG: that's w rong. the visible area for the object is handed over by the
server application to the container. You will have the same effect when
inserting such a document as OLE into a Calc document.
Comment 6 michael.ruess 2005-06-09 10:26:25 UTC
Created attachment 27043 [details]
sxd to reproduce problem
Comment 7 wolframgarten 2005-06-09 11:05:08 UTC
Reassigned. Couldn't we resize the OLE to the maximum width of the content? It
seems that we takeover the complete width of the draw doc but not the height...
Comment 8 lllbutcher 2008-09-03 12:06:04 UTC
I am also interested in this.

I am going to try to file a bug report to improve writer behavior.

Maybe things will get better this time.
Comment 9 lllbutcher 2008-09-04 10:41:55 UTC
This same bug has been reported many times.
16156:  Aug 2003, OO 1.1
20643:  Oct 2003, OO 1.1
28046:  Apr 2004
50398:  Jun 2005, OO 2.0 beta
53266:  Aug 2005, 680m122
72879:  Dec 2006, OO 2.1
73343:  Jan 2007, OO 2.1
81143:  Aug 2007, OO 2.2.1
82873:  Oct 2007, OO 2.3
93426:  Sep 2008, OO 2.4.1 and OOO300m4

If the author of this Issue is still online, please consider the contents of
16156 and 93426.

If the solution addresses your issue, please vote 2 for 16156.
Comment 10 eric.savary 2010-05-25 15:04:44 UTC
*** Issue 111821 has been marked as a duplicate of this issue. ***
Comment 11 Marcus 2017-05-20 11:31:18 UTC
Reset assigne to the default "".