Closed Bug 7024 Opened 25 years ago Closed 25 years ago

Changing SRC url on IMAGE element doesn't resize image

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 7019

People

(Reporter: cmanske, Assigned: vidur)

Details

I'm not sure if this belongs in imagelib, layout, or DOM, but here's the problem: Start the editor by either "-editor" command line switch or from the "Task" menu on apprunner. Insert an image element in an editor document. It can be inserted by placing caret in the page and clicking on Image toolbar button, enter a URL, and click OK. (Note that the image node does not have width and height explicitly set, so it uses the actual image size.) Select the image by clicking on it. Click on the image toolbar button again - it should show the current URL used for the SRC attribute. Edit the URL (you can use the "Choose File..." to get a local filename) to load a different image. After clicking on OK, the old image is replaced with the new one, but it uses the original image's width and height. Unless the width and height attributes are explicitly set (which we can't even do in the current image dialog), it should get the actual size data from the new image and resize it during layout.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 7019 ***
Status: RESOLVED → VERIFIED
Duplicate of 7019. Verified.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.