Closed
Bug 85821
Opened 23 years ago
Closed 23 years ago
png images resized through javascript do not appear correctly
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: wturkal, Assigned: jst)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.5wacom i686; en-US; rv:0.9.1)
Gecko/20010612
BuildID: 20010612
If I resize the images through javascript, the images get chopped short of their
full sizes or don't appear at all. IE renders it correctly if you want to get
an idea.
You could use this page as a stress test for your javascript engine and HTML DOM.
Reproducible: Always
Steps to Reproduce:
1. goto http://www.westlakeselfstorage.com
2. look at site
3. repeat
Actual Results: same stuff as in description
Expected Results: I expected resized images showed properly as in IE.
Here is the function that resizes the images.
It resides in http://www.westlakeselfstorage.com/scripts/common_scripts.js
function setupCommonGraphics(){
if(getDocWidth() > 0){
for(i=numHeaderImages; i < (numMenuImages+numHeaderImages); i++){
document.images[i].width = 0.20 * getDocWidth();
document.images[i].height = 0.07 * getDocHeight();
}
document.images[0].width = 0.20 * getDocWidth();
document.images[0].height = 0.20 * getDocHeight();
document.images[1].width = 0.75 * getDocWidth();
document.images[1].height = 0.20 * getDocHeight();
}
}
dup
*** This bug has been marked as a duplicate of 74313 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•