Issue 121453 - svg:viewBox uses width/height not right/bottom
Summary: svg:viewBox uses width/height not right/bottom
Status: CLOSED FIXED
Alias: None
Product: Draw
Classification: Application
Component: open-import (show other issues)
Version: 4.0.0-dev
Hardware: PC Windows XP
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://www.w3.org/TR/SVG/coords.html#...
Keywords:
Depends on: 122600
Blocks:
  Show dependency tree
 
Reported: 2012-12-09 12:16 UTC by Regina Henschel
Modified: 2017-05-20 10:33 UTC (History)
2 users (show)

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


Attachments
Example with negative values for min-x and min-y (594 bytes, image/svg+xml)
2012-12-09 12:16 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2012-12-09 12:16:59 UTC
Created attachment 80013 [details]
Example with negative values for min-x and min-y

The attribute svg:viewBox uses the parameters  <min-x>, <min-y>, <width> and <height>. But AOO interprets it as left/top/right/bottom. The problem becomes visible, if <min-x> or <min-y> are not zero.

Insert the attached graphic and set the line property to Continuous, to see the edges of the object. The size of the yellow rectangle should be identical to the size of the object, because its size is identical to the viewBox.
Comment 1 Armin Le Grand 2012-12-11 13:56:32 UTC
ALG: Adding me to CC.
You are right, the rason ViewBox was added at that time was to have a place for the unit; internally the translation is never used. Need to check that deeper and decide what *shoud* happen when the ViewBox values are used and are different from object's pos/size.
Comment 2 Regina Henschel 2013-08-05 00:42:32 UTC
A fix is contained in the patch at bug 122600.
Comment 3 Regina Henschel 2013-08-28 11:53:20 UTC
Object is now shown with correct width and height, for positive values for min-x and min-y as well.
Comment 4 Regina Henschel 2013-08-28 12:46:17 UTC
verified in AOO 4.0.1 r1517538 and trunk r1517803.