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




Event Handling
19 years ago
a year ago


(Reporter: ayresp, Assigned: buster)



Windows 98

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [WORKSFORME?])


(2 attachments)



19 years ago
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)



19 years ago
Assignee: mccabe → joki
Component: Javascript Engine → Event Handling
QA Contact: cbegle → janc

Comment 1

19 years ago
wrong component.

Comment 2

19 years ago
Created attachment 1141 [details]
testcase 1


19 years ago
Whiteboard: [TESTCASE]

Comment 3

19 years ago
Created attachment 1142 [details]
testcase 2

Comment 4

19 years ago
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.


19 years ago
Summary: Image sizes are not correctly adjusted when using onMouseOver with images

Comment 5

19 years ago
added summary
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase

Comment 7

19 years ago
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 
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

Comment 8

19 years ago
can be fixed post-beta 1, moving to M16.
Target Milestone: M16

Comment 9

19 years ago
mine! mine mine mine!  all mine!  whoo-hoo!
Assignee: kipp → buster

Comment 10

18 years ago
Important to fix, but no owner today.  Moving to M20.
Keywords: helpwanted
Target Milestone: M16 → M20

Comment 11

18 years ago
Tested With Build # 2000052208 on Windows 98 SE

Went to both test cases, On mouse over correct image was displayed.
Works foe Me

Comment 12

18 years ago
Tested with Build # 2000052720 on RH 6.2
Fails both test cases on Linux
OS needs to be updated to All.

Comment 13

18 years ago
Linux test failure was bug in my box.
retested Wiyh Build # 2000052809 on RH 6.2
Works for me

Comment 14

18 years ago
redistributing bugs across future milestones, sorry for the spam
Target Milestone: M20 → M22

Comment 15

18 years ago
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

Comment 16

18 years ago
Mass update:  changing qacontact to ckritzer@netscape.com
QA Contact: janc → ckritzer

Comment 17

18 years ago
Updating QA Contact.
QA Contact: ckritzer → lorca

Comment 18

18 years ago
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

Comment 20

18 years ago
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?]

Comment 21

18 years ago
wfm Win98 2001022820. Marc could you close this bug?

Comment 22

18 years ago
Just tested: works for me on NT (both testcases). Since others are reporting
that it is working as well, marking WORKSFORME. Thanks everybody.
Last Resolved: 18 years ago
Resolution: --- → WORKSFORME

Comment 23

17 years ago
QA contact updated
QA Contact: gerardok → madhur


17 years ago

Comment 24

17 years ago
verified on build 2001-08-13-trunk
Keywords: helpwanted, qawanted
You need to log in before you can comment on or make changes to this bug.