Closed Bug 11301 Opened 25 years ago Closed 24 years ago

[IMG] Image sizes are not correctly adjusted when using onMouseOver with images

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED WORKSFORME
Future

People

(Reporter: ayresp, Assigned: buster)

Details

(Keywords: testcase, Whiteboard: [WORKSFORME?])

Attachments

(2 files)

hi! the src code :

<a href="index.htm" onMouseOver = "document.mudaimage.src='xman.gif'; return
true;" onMouseOut = "document.mudaimage.src='oi.gif'; return true;"> <img
name="mudaimage" src="oi.gif"></a>

doesnt work in mozilla milestone 8 and in the nightly build (its not the last, i
think, 3 days ago). if the img are in different size (pixels - in this example,
the first img is smaller than the second) when the onmouseover occurer mozilla
put a limit in size in the second (if the first image has 5 X 5 pixels and the
second 100 X 100, when the onmouseover happen the secong img changes to 5 X 5)

bye
Assignee: mccabe → joki
Component: Javascript Engine → Event Handling
QA Contact: cbegle → janc
wrong component.
Attached file testcase 1
Whiteboard: [TESTCASE]
Attached file testcase 2
This is really strange... Using build 1999-08-04-09-M9 on Windows 98,
testcase 1 displays both images in their natural size.
testcase 2 scales the onMouseOver image to the first image's size.
But the tests are coded *identically*, except for some
explaining comments I made in testcase 1.
Summary: Image sizes are not correctly adjusted when using onMouseOver with images
added summary
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
So the problem in this case is that if the img has been preloaded elsewhere in 
the page then we don't rescale the img when we change the img src.  If the img 
hasn't been preloaded, then we do scale.

Add on to this that we're discussing not scaling the img at all when 
substituting the img src and I have no idea what the right behavior is.  But I 
do know its not mine to fix.  Unfortunately it goes on kipp's list.  I'll put it 
there for now and at some point someone will pick these img bugs up and fix 
them.
Assignee: joki → kipp
Summary: Image sizes are not correctly adjusted when using onMouseOver with images → [IMG] Image sizes are not correctly adjusted when using onMouseOver with images
can be fixed post-beta 1, moving to M16.
Target Milestone: M16
mine! mine mine mine!  all mine!  whoo-hoo!
Assignee: kipp → buster
Important to fix, but no owner today.  Moving to M20.
Status: NEW → ASSIGNED
Keywords: helpwanted
Target Milestone: M16 → M20
Tested With Build # 2000052208 on Windows 98 SE

Went to both test cases, On mouse over correct image was displayed.
Works foe Me
Tested with Build # 2000052720 on RH 6.2
Fails both test cases on Linux
OS needs to be updated to All.
Linux test failure was bug in my box.
retested Wiyh Build # 2000052809 on RH 6.2
Works for me
redistributing bugs across future milestones, sorry for the spam
Target Milestone: M20 → M22
This bug has been marked "future" because the original netscape engineer working 
on this is over-burdened. If you feel this is an error, that you or another 
known resource will be working on this bug,or if it blocks your work in some way 
-- please attach your concern to the bug for reconsideration. 
Target Milestone: M22 → Future
Mass update:  changing qacontact to ckritzer@netscape.com
QA Contact: janc → ckritzer
Updating QA Contact.
QA Contact: ckritzer → lorca
works for me (win98 2000120308).
Reassigning QA Contact for all open and unverified bugs previously under Lorca's
care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
worksforme in mozilla0.8 win95. Would it be possible for the QA contact to test
this (and probably mark it worksforme)? thanks!
removing [testcase] from status whiteboard as it already has the keyword
Keywords: qawanted
Whiteboard: [TESTCASE] → [WORKSFORME?]
wfm Win98 2001022820. Marc could you close this bug?
Just tested: works for me on NT (both testcases). Since others are reporting
that it is working as well, marking WORKSFORME. Thanks everybody.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
QA contact updated
QA Contact: gerardok → madhur
Status: RESOLVED → VERIFIED
verified on build 2001-08-13-trunk
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: