Bug 129093 - khtml doesn't create tables with a width of e.g. 15844 pixels
Summary: khtml doesn't create tables with a width of e.g. 15844 pixels
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml renderer (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-13 15:21 UTC by Andreas Pietzowski
Modified: 2014-10-20 18:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Pietzowski 2006-06-13 15:21:32 UTC
Version:           3.5.3 (using KDE 3.5.3 Level "a" , unofficial build of SUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15.10-smp

On the website of my band we present all the pics from an event or a concert in a pop-up window (700x320 pixels) with all JPEGs next to each other; like a banner. To prevent line breaks I put a table around the images with a fixed width. I calculate the width of the table in PHP by adding the widths of the images.

All banner tables that exceed a specific width, konqueror stops the table at some width and inserts a new line in that cell which I never wanted. That is anoying because then you also have to use the vertical scrollbars and it is no banner effect anymore. Firefox, Opera and IE work fine with tables with a fixed width of e.g. 15844 pixels.

You can see the behavior at www.hoerstreich.de/pics.php when choosing a gallery with many pictures.

I think this bug should be easy to fix.

Thanks
Andreas
Comment 1 Allan Sandfeld 2006-06-13 15:35:45 UTC
Konqueror can not handle pages with more than 15bit worth of width (16384). It wasn't expected that anyone would create such a page.
Comment 2 Andreas Pietzowski 2006-06-13 15:45:18 UTC
Thats a pity, but this is a really cool effect with all that pictures next to each other and it works with all common browsers. But if you tell me the limit is 15 bits, why does khtml wrap the lines in the cell when I force a table-width of "only" 15844 pixels?

Testpage: http://www.hoerstreich.de/banner.php?gallery=2004-12-04+kneipentour

Do you think this is a lot work to blow it up to more bits in width? I am pretty sure that my band website is not the only website in the world which uses bigger page widths...
Comment 3 Allan Sandfeld 2006-06-13 16:06:31 UTC
Because your images are in total are wider than 15844 pixels?
Comment 4 Andreas Pietzowski 2006-06-13 16:22:16 UTC
Sorry this is not possible, because I add all the single image sizes in the php script and that value I use for the table width. I also added 10 pixels to ignore some (maybe) pixel errors in some browser...

But anyhow. What do you think about erasing that 15 bit width restriction out of the khtml code base? A 32 bit integer would do a great job and I guess firefox and others used it instead of 15 bits ;)
Comment 5 Allan Sandfeld 2006-06-13 18:17:34 UTC
I would certainly prefer that, but you still shouldn't have a problem with the current setup. It will probably work if you add more width.
Comment 6 Andreas Pietzowski 2006-06-13 20:03:41 UTC
Maybe this will fix it - I haven't tried because then it's a bug anyway. Why should I tell a table with no cellpadding and no cellspacing to be wider than the sum of the width of all the pictures in one row? It should fit mathematically-exactly in the given pixelrange...
Comment 7 Jo Øiongen 2008-04-21 22:35:18 UTC
This bug is still present using Konqueror 4.0.3 on Kubuntu 8.04 RC.
Comment 8 Andreas Pietzowski 2008-04-21 23:36:26 UTC
Yes. Please let the tables in khtml be as big (width AND height) as it wants to be. At least a designer expects a browser to do what the HTML code tells it to do. I guess a maximum of 65536 should be ok for every designer.
Comment 9 Andreas Pietzowski 2010-03-31 14:00:26 UTC
This bug is still present in KDE 4.4.2! Come on, this is a standard html issue.