Closed
Bug 39944
Opened 24 years ago
Closed 24 years ago
images spontaneously shrink or expand in small height div
Categories
(Core :: Layout, defect, P2)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: jlarsen, Assigned: waterson)
Details
(Whiteboard: [nsbeta3+] FIX IN HAND)
Attachments
(3 files)
174 bytes,
text/html
|
Details | |
1.01 KB,
patch
|
Details | Diff | Splinter Review | |
1.76 KB,
patch
|
Details | Diff | Splinter Review |
Try this code snippit <html> <body> <div id="Layer1" style="position:absolute; height:7%"> <img src="http://www.mozilla.org/images/mozilla-banner.gif" height="100%"> </div> </body></html> Image slowly resizes itself sometimes to the proper size, sometimes it starts increasing its size to infinity. If you don't see it, try resizing the window. Works on Gifs Jpgs and Pngs (and any other I would assume) (works best with wide skinny pictures) the small the height the better chances of it occuring, sometimes occurs up to 20%
Comment 2•24 years ago
|
||
I have observed this behavior using 2000-05-19-08 Win Talkback on Windows 98, except instead of expanding, the image shrinks.
Comment 3•24 years ago
|
||
updating component and owner.
Assignee: asadotzler → clayton
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout
Ever confirmed: true
QA Contact: jelwell → petersen
Comment 5•24 years ago
|
||
Nice effect indeed! Reassigned to Layout. The problem may be triggered by some roundings in the calculations but still, we should not keep on resizing the image like that.
Assignee: pierre → clayton
Summary: images weirdness in small height div → images spontaneously shrink or expand in small height div
Comment 6•24 years ago
|
||
I did not mean to send it back to clayton. Reassigned to waterson because buster is still the Most Doomed Person.
Assignee: clayton → waterson
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Assignee | ||
Updated•24 years ago
|
Keywords: correctness,
nsbeta3
Target Milestone: M17 → M18
Just wanted ot make a note, the bug has increased in annoyance, it now tried to confirm its cache of the image on each resize.. creating a very annoying looking thing, and contantly reconnecting to the website, I assume the website doesn't like this either.
Assignee | ||
Updated•24 years ago
|
Priority: P3 → P2
Assignee | ||
Comment 9•24 years ago
|
||
Assignee | ||
Comment 10•24 years ago
|
||
We get into a feedback loop when reflowing the image frame with a constrained height but an auto width. (At least, with this test case.) The above patch attempts to mitigate that by rounding to pixels. If this approach seems reasonable, we'll need to do the same thing for images with constrained width and auto height.
Assignee | ||
Comment 11•24 years ago
|
||
Comment 12•24 years ago
|
||
this approach seems very reasonable. r=buster, assuming you've done all the usual tests.
Assignee | ||
Updated•24 years ago
|
Whiteboard: [nsbeta3+] → [nsbeta3+] FIX IN HAND
Assignee | ||
Comment 13•24 years ago
|
||
fix checked in, r=buster,scc.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•