| Summary: | Error rendering image when changing contemporary src, width and height | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Enrico Oltolina <enrico.oltolina> |
| Component: | khtml | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | martin |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Unlisted Binaries | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
If you can reproduce with current KDE (>= 4.6.4), please reopen and attach a complete testcase. |
Version: (using KDE KDE 3.5.7) Installed from: Unspecified Linux OS: Linux I defined an img in my page like this: <img src="img/trasp.gif" width="110" height="82" id="imgPreviewId"> If using javascript an image is loaded, and inserted in imgPreviewId with the following commands, all it works: imgPreviewObj = document.getElementById("imgPreviewId"); imgPreviewObj.src = "..."; imgPreviewObj.width=...; imgPreviewObj.height=...; Warning: the width and height set are different from original image size, the idea is to obtain a preview, so the image is resized. After that another image is loaded, with different src and size: the image doesn't change! It seems that the new image is not loaded. But all it works if only the src is changed, while width and height are not changed. I tried to change the render_image.cpp file, and I cleaned the resizeCache when a needLayout is set to true, and so it works.