Closed Bug 61597 Opened 24 years ago Closed 24 years ago

image given wrong size when only width attribute specified

Categories

(Core :: Layout: Tables, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozilla, Assigned: attinasi)

References

()

Details

Attachments

(3 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.18pre15 i686; en-US; m18) Gecko/20001127 BuildID: 2000112708 Go to the URL (http://www.wagland.net/mozilla/bug1/index.html) and you can see the problem easily. The vertical bar (one pixel wide) is not correctly sized when only the width attribute is given. This looks like it is being doubled in size. Reproducible: Always Steps to Reproduce: 1. Go to the web site 2. look at page Actual Results: three of the tables display correctly. one does not. The one that specifies only the width is not displayed correctly. Expected Results: All tables would look the same.
Just in case it helps any, this bug can also be seen when user_pref("nglayout.debug.enable_scary_view_manager", true); is in the users prefs.js file. I.e. this makes no difference to this bug.
linux build 2000-11-27-08 -- all the images look identical to me..
*sigh* That is why I love computers...so predictable :-) Anyway, I have updated the URL to include this link: http://www.wagland.net/mozilla/bug1/bug-shot.png It shows the bug happening on my browser. How can I tell what is causing this. Could it be a .so problem? I am using (mostly) SuSE 7.0.
QA Contact: petersen → lorca
this bug should probably go to Pam or Karnaze
Just thought I would confim that I can see this bug with the Linux XPI install of build 2000120421. Any ideas on where I might look in the code to start tracing this bug? I do not have the code yet, but would love to get this fixed...I use postbank.nl a fair bit.. :-)
worksforme build 2000121120 win32, all the images look exactly the same
I can't reproduce this problem eiher with the Dec 12th build. Reporter, can you pull a newer build and try again.
QA Contact: lorca → petersen
Changing component to HTML tables
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Component: Layout → HTMLTables
QA Contact: petersen → chrisd
Resolution: --- → WORKSFORME
*sigh* Nope. It still does not work for me....Build 2000121308 still shows exactly the same results as the screenshot that I have given. This the linux installer build. Could that make a difference? Are there any system libraries that might be causing me problems? It really is very frustrating that I appear to be the only one to see this problem...any assistance that can be offered would be greatly appreciated!
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Reporter: Just for fun, would you take a look at the page I have attached with the browser has the bug? It is a very simplified page that only uses one image, lijntop.gif. If you could attach a screen grab of the page, it would good. I'm afraid I haven't been able to reproduce the problem either... we'll track it down. -p
OK. Well the screenshot is now attached. It is still failing in exactly the same way. (for me at least). I should note that I will be getting a new machine soon, and so will be able to suck the source and build it. If it is an environmental error, then this may well flush the problem. Mind you, there do not appear to be any .so's imported that could cause this problem....
Note: see notes supplied by mm on bug#55940. May be related. -p
Summary: When only the width tag is specified on an image the image is missized. → image given wrong size when only width attribute specified
Yippee. I can duplicate the problem on my linux build. And the image request to image lib is asking for an image width=2, height=62, whereas it should be asking for an image width=1, height=32. I'll find out who is issuing the bogus request.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'll take this off of Clayton's plate and find out who is generating the incorrect dimensions. -p
Assignee: clayton → pnunn
Buster: I dunno if this bug should go to you, but if not, would you route it to the correct person? It looks like the bug is somewhere in nsHTMLImageLoader.cpp in nsHTMLImageLoader::GetDesiredSize(). And it is unix specific. The images look fine on NT, but are incorrect on linux.. I have not checked the display on other unixes. ?? maybe a twips problem? The problem also seems to relate to the calculations where only one dimension is given and the other calculated. The dimensions are incorrect by the time the image request is issued to the image library. -pn
Assignee: pnunn → buster
Hi all! Success! With Build 2000123121 the screen appears (roughly) as it should be! Thanks!
I'm checking this out. It may work now, but I am nervous because AFAIK nothing has changed, certainly not in the nsHTMLImageLoader...
Assignee: buster → attinasi
Nervous or not, it seems to be working correctly. I tested the URL and the testcase on Linux (RedHat 6.2) and saw no problems. Marking WORKSFORME - I'm sure if this reappears it will be reopened or rereported ;)
Status: NEW → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → WORKSFORME
QA contact update
QA Contact: chrisd → amar
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: