Closed Bug 406754 Opened 17 years ago Closed 17 years ago

SVG is not resizable

Categories

(Core :: SVG, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 407495

People

(Reporter: lie.1296, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b1) Gecko/2007110904 Firefox/3.0b1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b1) Gecko/2007110904 Firefox/3.0b1 If you try to resize a stand-alone SVG image, it stays the same size, oddly the viewing port would resize. I don't know how about SVGs embedded in HTML. Reproducible: Always Steps to Reproduce: 1. Open an SVG image (stand-alone SVG?) 2. Resize the image Actual Results: SVG stays the same size, the viewing port resizes Expected Results: SVG resizes, the viewing port resizes as needed
Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
The width and height of the outer SVG are not percentages.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
At least give an option to force resize when the width and height of the SVG is not a relative value. And anyway, the windows frame resize (notice the scrollbar resizing). Even though it is a design choice not to support force resizing, when handling images with absolute values width and height, the window frame shouldn't be resized if the image can't be resized due to absolute value width and height. I'll leave the resolution as Resolved Invalid, but I hope a more expert member would consider this proposition and reopen the issue: 1. Not supporting force resize. Leave window frame as it is. 2. Support force resize.
I'm not at all clear what you mean by "force resize". Are you looking for a Firefox menu item "Force SVG image size too..." or something like that? I'm also not clear what you mean by "windows frame".
Sorry for being unclear. What I mean by force resize is to force resizing an SVG images that is otherwise unresizable because the width and height of the image is specified by an absolute size (px, cm, etc) rather than relative size (%) Windows frame, well forgive me for using such a misleading term, if you tried to resize the SVG image, the image won't resize simply because the image is specified in absolute value, to that point, the behavior is acceptable. But Firefox does an odd thing: the image itself doesn't resize, but you can notice that the vertical scrollbar on the right side of Firefox sizing up and down to facilitate with the supposedly new "image size". Of course since the image itself doesn't resize, the scrollbar shouldn't try to facilitate this "change" in image size.
That first issue is basically the same as bug 407495. Somehow you want width="50%" not to be equal to half the viewport width (which is what it is defined to be). If you want that then your best option is to write a greasemonkey script or extension that changes the outer SVG width and height not to be percentages. As for the second issue are you testing with Firefox 3 beta 1 which is broken in this regard? If so try testing with a nightly build. I think Windows frame is equivalent to viewport size.
I don't expect the first proposition to be accepted, as it is actually an "incorrect" way of handling SVG (although it might be nice to be able to force resize), but the second proposition is in Firefox Beta 1, yes. So probably these two issue have actually been reported. Probably you could tell me the bug number for that one so this issue could be correctly resolved as a duplicate, since I have a bit of difficulty finding that bug.
Resolution: INVALID → DUPLICATE
I think you misunderstood me, I mean the bug number for the second issue, in which Firefox's scrollbar resizes but the image does not. Well it doesn't matter that much though if the bug has been fixed in the nightlies.
bug 370006 is the one I mean. Please try a nightly and check your scrollbar issue. If it is still a problem feel free to create a new bug.
The SVG _resized_ nicely on Minefield Build 2007121108, at 3 Beta 1 it won't resize at all, although the scrollbar _do_ resize. But it seems that it won't render if I (manually, as Inkscape don't allow percentages on outer SVG h&w) changed the outer SVG height and width to percentages. Well, I don't think it makes sense either if the outer height and width is percentage, since AFAIK percentage is calculated from the immediate parent's height and width, and considering viewport as the parent of the image is a bit... well, yeah odd, perhaps not too dissimilar with old IE's bug that considers there is a hidden root node above <html>, which can be accesed through * (star sign).
Please try this application SVG Edit 2.6 link http://svg-edit.googlecode.com/svn/branches/2.6/editor/svg-editor.html, it presents the same issue when trying to resize vectorial images added as url. However, if you try the same application in Google Chrome,IE 9 with Google Chrome Frame plugin or any other plugin it works perfectly fine. Why not treat SVG files images as they were .JPG or.PNG as Google Chrome does.
You need to log in before you can comment on or make changes to this bug.