Bug 61730 - Konqueror formats pages too wide for the screen
Summary: Konqueror formats pages too wide for the screen
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.2.1
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Dirk Mueller
URL:
Keywords:
: 61841 61854 61872 61931 61937 62002 62104 62158 62164 62234 62273 62323 62412 62469 62498 62570 62609 62637 62759 62838 63267 63303 63667 63975 64401 81139 85722 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-27 19:15 UTC by cb-kde
Modified: 2013-07-20 21:46 UTC (History)
33 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Demonstrates the bug (2.28 KB, text/html)
2004-05-09 08:01 UTC, Rene Horn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cb-kde 2003-07-27 19:15:47 UTC
Version:           Recent KDE_3_1_BRANCH CVS snapshot (using KDE KDE 3.1.3)
Installed from:    Unspecified Linux
Compiler:          gcc version 3.3.1 20030626 (Debian prerelease)  
OS:          Linux

To reproduce:
Load konqueror
go to http://www.slashdot.org/ or many other websites
observe horizontal scroll bar

It is expected that Konqueror will render the pages so that the horizontal scroll bar is not required.
Comment 1 cb-kde 2003-07-27 19:16:37 UTC
I meant to say that (as far as I remeber) this is a regression which has 
occured on KDE_3_1_BRANCH in the last month or so. 
Comment 2 Stephan Binner 2003-07-30 23:03:04 UTC
*** Bug 61841 has been marked as a duplicate of this bug. ***
Comment 3 Stephan Binner 2003-07-30 23:03:35 UTC
*** Bug 61872 has been marked as a duplicate of this bug. ***
Comment 4 Stephan Binner 2003-07-31 09:45:13 UTC
render_root.cpp 1.116.2.3 broke it. 
Comment 5 Ingo Klöcker 2003-07-31 10:09:13 UTC
*** Bug 61854 has been marked as a duplicate of this bug. ***
Comment 6 cb-kde 2003-07-31 23:06:10 UTC
I can confirm that reverting render_root.cpp to 1.116.2.2 works here. 
Comment 7 Joseph Mesterhazy 2003-07-31 23:18:38 UTC
Yes reverting that patch does work, but what does it break that the patch 
intended to fix? 
Comment 8 Stephan Binner 2003-07-31 23:33:34 UTC
> what does it break that the patch intended to fix? 
 
http://bugs.kde.org/show_bug.cgi?id=54673 
Comment 10 Maksim Orlovich 2003-08-01 02:12:00 UTC
*** Bug 61931 has been marked as a duplicate of this bug. ***
Comment 11 Maksim Orlovich 2003-08-01 04:02:45 UTC
*** Bug 61937 has been marked as a duplicate of this bug. ***
Comment 12 Fritz Heinrichmeyer 2003-08-01 09:32:22 UTC
this bug is evident when looking at 
 
 
http://www-es.fernuni-hagen.de/doc/cyrus-imapd2/overview.html#sieve 
Comment 13 metrol 2003-08-01 13:52:28 UTC
This bug is evident when looking at THIS page.  It'd be nothing more than a 
minor annoyance except for the fact that it actually messes up text layout in 
many instances. 
 
I recently submitted what turned out to be a dupe of this bug which I believe 
describes the problem better than what is mentioned here. 
FWIW:  http://bugs.kde.org/show_bug.cgi?id=61937 
Comment 14 Ed Hynan 2003-08-01 15:57:30 UTC
The bug is not only evident in Konquerer, it's 
an annoyance in KDE Help Center too.  I find it 
more than a minor annoyance when the page being 
rendered has small or no vertical margins, as is 
the case with the included KDE docs.  A single line 
of text might not fit the displayed area. 
 
Comment 15 Stephan Binner 2003-08-02 12:17:30 UTC
*** Bug 62002 has been marked as a duplicate of this bug. ***
Comment 16 gallir 2003-08-02 18:17:45 UTC
Ugly, http://lwn.net/ too. 
Some letters are not shown with tables of 100% width. 
Comment 17 Carl Thompson 2003-08-02 19:23:40 UTC
Might I suggest testing before releases?  An obviously visible flaw that shows 
up in the web browser, file manager, and mail client (and wherever else) 
should have been caught if KDE 3.1.3 were actually tested. 
 
Comment 18 Dirk Mueller 2003-08-02 23:28:53 UTC
Subject: KDE_3_1_BRANCH: kdelibs/khtml/rendering

CVS commit by mueller: 

grr, automatic backporting patch made it automatically wrong :(
CCMAIL: 61730-done@bugs.kde.org


  M +2 -2      render_root.cpp   1.116.2.4


--- kdelibs/khtml/rendering/render_root.cpp  #1.116.2.3:1.116.2.4
@@ -119,5 +119,5 @@ void RenderRoot::layout()
     if (!m_printingMode) {
         QSize s = m_view->viewportSize(m_view->contentsWidth(),
-                                       0);
+                                       m_view->contentsHeight());
         m_width = s.width();
         m_height = s.height();
@@ -133,5 +133,5 @@ void RenderRoot::layout()
         m_view->resizeContents(docWidth(), docHeight());
         QSize s = m_view->viewportSize(m_view->contentsWidth(),
-                                       m_view->contentsHeight());
+                                       0);
         setWidth( m_viewportWidth = s.width() );
         setHeight(  m_viewportHeight = s.height() );


Comment 19 metrol 2003-08-03 05:44:19 UTC
I just slapped that patch into my FreeBSD port and rebuilt kdelibs.  Looks like 
that solved the problem with the HTML rendering.  The test cases on this bug 
also look good to go. 
 
It looks like these are back and up running as a problem though: 
http://bugs.kde.org/show_bug.cgi?id=54673 
http://bugs.kde.org/show_bug.cgi?id=53705 
 
For the moment I'd personally rather have the rest of teh 99.99% of the web 
rendering properly.  Even still, either this bug or one of those others should 
remain open until both are working properly at the same time. 
 
Comment 20 Maksim Orlovich 2003-08-05 02:17:48 UTC
*** Bug 62104 has been marked as a duplicate of this bug. ***
Comment 21 Ingo Klöcker 2003-08-05 10:24:08 UTC
*** Bug 62158 has been marked as a duplicate of this bug. ***
Comment 22 Thiago Macieira 2003-08-05 12:48:57 UTC
*** Bug 62164 has been marked as a duplicate of this bug. ***
Comment 23 metrol 2003-08-05 15:28:11 UTC
With Dirk's patch applied I ran into another oddball kinda page here that is 
showing up with a confused horizontal scrollbar. 
 
http://www.faqs.org/faqs/x-faq/speedups/ 
 
No readability problems, just that Konqueror thinks there's a whole other half 
of this page off to the right.  Reality checked this against Mozilla.  It ain't 
the page.  Maybe something to do with PRE tags? 
 
Additionally, man pages being displayed in Konqueror still always have a 
horizontal scrollbar regardless of need.  Example: man:/ls 
 
Although the patch makes the situation unquestionably better, I am of the 
opinion that this bug should be re-opened.  There are still layout issues at 
play that have not been resolved involving that darn scrollbar. 
Comment 24 Plamen Neykov 2003-08-05 23:11:27 UTC
unfortunately this bug touches everything I use - konqueror, kmail, kopete 
etc.... 
will it be there a 3.1.4 or similar or should i compile kdelibs by myself to 
get rid of it? 
 
cheers 
Comment 25 Todd Stephens 2003-08-05 23:32:04 UTC
Subject: Re:  Konqueror formats pages too wide for the screen

On Tuesday 05 August 2003 05:11 pm, you wrote:
>
> ------- Additional Comments From Plamen.Neykov@t-online.de  2003-08-05
> 23:11 ------- unfortunately this bug touches everything I use - konqueror,
> kmail, kopete etc....
> will it be there a 3.1.4 or similar or should i compile kdelibs by myself
> to get rid of it?
>

I believe there is a 3.1.3a coming shortly to correct the problem.  In the 
meantime, I have 'downgraded' myself to 3.1.2.

Comment 26 ndeb 2003-08-05 23:37:53 UTC
Subject: Re:  Konqueror formats pages too wide for the screen   

On Tue, 5 Aug 2003, Todd Stephens wrote:

> I believe there is a 3.1.3a coming shortly to correct the problem.  In the
> meantime, I have 'downgraded' myself to 3.1.2.

But kde-3.1.3 is supposed to fix a security hole. See
http://www.kde.org/info/security/advisory-20030729-1.txt .

Comment 27 Todd Stephens 2003-08-05 23:47:35 UTC
Subject: Re:  Konqueror formats pages too wide for the screen

On Tuesday 05 August 2003 05:37 pm, you wrote:

> But kde-3.1.3 is supposed to fix a security hole. See
> http://www.kde.org/info/security/advisory-20030729-1.txt .

Yes, but it is not an altogether likely situation for me.

Comment 28 Alejandro Exojo 2003-08-05 23:57:37 UTC
Subject: Re:  Konqueror formats pages too wide for the screen

El Martes, 5 de Agosto de 2003 23:37, ndeb@ece.cmu.edu escribi
Comment 29 Todd Stephens 2003-08-06 00:12:56 UTC
Subject: Re:  Konqueror formats pages too wide for the screen

On Tuesday 05 August 2003 05:57 pm, you wrote:

> It's a bug in konqueror. Try downgrading only kdelibs, but may be tricky
> because of broken dependencies.

I downgraded only kdelibs and kdebase.  I noticed also (and this may have been 
an issue strictly with the Slackware binary packages for KDE) but 3.1.3 did 
not include the kdeprint_cups libraries.  I discovered this at a very 
unfortunate time while trying to print a report for someone.  I had to reboot 
into Windows just to print.

Comment 30 Stephan Binner 2003-08-06 10:49:58 UTC
*** Bug 62234 has been marked as a duplicate of this bug. ***
Comment 31 Maksim Orlovich 2003-08-06 21:02:06 UTC
*** Bug 62273 has been marked as a duplicate of this bug. ***
Comment 32 Thiago Macieira 2003-08-07 13:49:46 UTC
*** Bug 62323 has been marked as a duplicate of this bug. ***
Comment 33 Maksim Orlovich 2003-08-09 15:39:34 UTC
*** Bug 62412 has been marked as a duplicate of this bug. ***
Comment 34 Mathias Homann 2003-08-09 21:54:39 UTC
> I believe there is a 3.1.3a coming shortly to correct the problem. 
 
 
how soon is 'shortly'? 
 
Comment 35 Thiago Macieira 2003-08-11 09:46:25 UTC
*** Bug 62469 has been marked as a duplicate of this bug. ***
Comment 36 Maksim Orlovich 2003-08-11 15:53:05 UTC
*** Bug 62498 has been marked as a duplicate of this bug. ***
Comment 37 Maksim Orlovich 2003-08-12 20:20:06 UTC
*** Bug 62570 has been marked as a duplicate of this bug. ***
Comment 38 Stephan Binner 2003-08-13 19:02:09 UTC
*** Bug 62609 has been marked as a duplicate of this bug. ***
Comment 39 Maksim Orlovich 2003-08-14 03:54:28 UTC
*** Bug 62637 has been marked as a duplicate of this bug. ***
Comment 40 Alex Radu 2003-08-14 06:33:55 UTC
Glad this was fixed, it was really annoying, but the update was still worth it for the rest of the 
stuff. 
 
I wish that this dupell (dupe hell) would stop too, I mean the bug is fixed. 
Comment 41 Maksim Orlovich 2003-08-16 15:20:47 UTC
*** Bug 62759 has been marked as a duplicate of this bug. ***
Comment 42 Maksim Orlovich 2003-08-17 17:58:08 UTC
*** Bug 62838 has been marked as a duplicate of this bug. ***
Comment 43 Maksim Orlovich 2003-08-26 16:05:10 UTC
*** Bug 63267 has been marked as a duplicate of this bug. ***
Comment 44 Stephan Binner 2003-08-27 13:40:16 UTC
*** Bug 63303 has been marked as a duplicate of this bug. ***
Comment 45 Maksim Orlovich 2003-09-03 16:18:44 UTC
*** Bug 63667 has been marked as a duplicate of this bug. ***
Comment 46 Maksim Orlovich 2003-09-09 20:48:51 UTC
*** Bug 63975 has been marked as a duplicate of this bug. ***
Comment 47 Maksim Orlovich 2003-09-17 03:10:47 UTC
*** Bug 64401 has been marked as a duplicate of this bug. ***
Comment 48 Yves Glodt 2004-04-18 22:45:24 UTC
Upgrading from 3.2.1 to 3.2.2 made this bug appear again for me,
e.g. on http://bugs.kde.org/
I use 1280x960 as resolution.
Comment 49 Yves Glodt 2004-04-18 22:54:48 UTC
more details:

- Open a new tab
- type bugs.kde.org + ENTER
  -> page is "formatted too wide" (I have a horizontal scrollbar)
- click in the urlbar, press ENTER
  -> bugs.kde.org gets reloaded, and gets formatted normally
  (no more horizontal scrollbar)
Comment 50 Gunter Ohrner 2004-04-19 19:47:24 UTC
Confirmed. (Using the official Debian Unstable packages.)
Comment 51 Mathias Homann 2004-04-19 20:06:29 UTC
does not happen with the kde 3.2.2 packages that just came in via apt4rpm for suse 9.0...
Comment 52 Tommi Tervo 2004-04-19 23:17:21 UTC
I'll reopen this one. 
Comment 53 Malte S. Stretz 2004-04-19 23:22:42 UTC
Can't reproduce this one anymore either. While those pages are loaded, they are first shown with the horizontal scrollbar but as soon as loading is finished, they look good.

This is Gentoo with a fairly recent build of the KDE_3_2_BRANCH.
Comment 54 David P James 2004-04-22 17:33:39 UTC
As mentionned in comment 49 you have to open a page in a new tab (background or foreground, it doesn't matter). If loaded in the current tab the scrollbar does indeed disappear when finished loading.

I can't pin this down for sure but it seems to occur on pages with tables. My own <div>s-only pages don't show this bug. Neither do http://www.mozilla.org's pages, where only divs are used whereas bugzilla pages both here and there show it since they use tables.

Other than reloading, one can also dismiss the scrollbar by opening/closing the Navigation Panel or any other action that causes the viewport to be resized.

Finally, I also noticed that this is occurring in KMail as well at times, particularly when selecting a new folder, but it doesn't do it consistently - just enough to be annoying.
Comment 55 Malte S. Stretz 2004-04-22 21:19:01 UTC
Right, now I can reproduce it again, too.
Comment 56 Brian Knotts 2004-04-26 19:07:08 UTC
I can reproduce this still in 3.2.2.
Comment 57 Malte S. Stretz 2004-04-28 18:04:18 UTC
It gets even weirder:

1. Open http://www.lorentzpumps.com/ in a new tab, you'll get that dreaded scrollbar.
2. Now move your mouse pointer over the blue bar, a menu will pop up and suddenly the whole page shifts left and everything's fine.
Comment 58 Tommi Tervo 2004-05-08 15:38:24 UTC
*** Bug 81139 has been marked as a duplicate of this bug. ***
Comment 59 Rene Horn 2004-05-09 08:01:46 UTC
Created attachment 5918 [details]
Demonstrates the bug

I'll repeat what I said in Bug 81139:

> I have noticed that the horizontal scrollbar will often appear even when not
needed. This usually 
> happens with the vertical scrollbar also appears. I'm betting that the
vertical scrollbar is 
> screwing up the horizontal size calculation. I will include a file where this
happens. Note, 
> however, that the horizontal scrollbar disappears after a refresh.

And:

> It's ridiculously long to make sure the bug shows itself. 
>
> Make sure to open the file in a separate tab or window or the bug won't show.
Comment 60 Greg Diebel 2004-05-17 17:46:26 UTC
I continue to experience this bug in HEAD. Notice the problem consistently in kmail and with any number of websites. As noted, a refresh or resize of the frame fixes the problem and the page width scales properly.
Comment 61 Richard Fujimoto 2004-06-02 05:10:47 UTC
Eerily reminds me of the Netscape4 resize bug that required a piece of JS to refresh the entire page.  In any case, my vote is cast as I've been bitten by this a few times today with 3.3_alpha1.
Comment 62 Rene Horn 2004-06-20 06:13:11 UTC
Here's the basics my speculation of what's happening with this bug:

Essentially, the layout of the page is calculated first for a view without a vertical scrollbar, and then after that, the page's width is calculated, but then the vertical scrollbar is decreasing the viewing width of the page.
Comment 63 Hackeron 2004-06-20 13:26:27 UTC
With 3.3_alpha1 I no longer see this bug anywhere. Possibly needs some more testing, but all the sites that didnt resize properly now resize, including http://lwn.net/ ... So please try 3.3_aplha1 and see if it helps. For those that experience this with 3.3_alpha1, please provide links.
Comment 64 Richard Fujimoto 2004-06-22 22:40:46 UTC
Contrary to #63, I still experience this with lwn.net

Here's a few other examples where the bug is still present in 3.3_alpha1

http://www.steelers.com/
http://gooeylinux.org/index.php

Also the example posted in #59

As mentioned above, open each link in it's own window/tab for the bug to be present....  
Comment 65 Hackeron 2004-06-23 00:01:48 UTC
Well, useability isnt affected, but the horrizontal scroll bar appears. It does however also appear in firefox for http://gooeylinux.org/index.php -- so that example isnt really KDE's fault.
Comment 66 Barry Wardell 2004-06-28 22:18:54 UTC
This also seems to affect Kopete in the message window. When enough messages have been sent that a vertical scroll bar is required, a horizontal one is also created. Resizing the window gets rid of the horizontal scroll bar.
Comment 67 Wilbert Berendsen 2004-07-01 17:04:17 UTC
Same here, in KMail and Konqueror of 3.2.3 and also CVS HEAD as of yesterday (jun 30).
Comment 68 Wilbert Berendsen 2004-07-20 10:16:59 UTC
Still there in 3.3_beta2 as of July, 20. Shows up in KMail and on many sites, e.g. www.kde.nl.

Be sure to open them in a new window or tab. Sometimes hovering over some elements causes a redraw and then the horizontal scrollbar disappears.
Comment 69 Wilbert Berendsen 2004-07-20 10:26:08 UTC
Addition to #68, when opening http://www.kde.nl/ for the first time the horizontal scrollbar appears, but hovering over the left sidebar causes a redraw, after which the horizontal scrollbar disappears.

The li:hover used in the KDE.NL left sidebar stylesheet only changes the colors of background and border! Apparently, this is enough to cause a redraw.
(I voted for this annoying buglet, it is esp. annoying when reading texts and not seeing the last character of some lines, and because it shows up everywhere, in Kopete, KMail, etc. :-)
Comment 70 Jan de Visser 2004-07-22 18:51:18 UTC
For me it happens at most (all?) sites. Redraw can be forced by e.g. resizing the window, CVS HEAD today.
Comment 71 Maksim Orlovich 2004-07-22 22:16:14 UTC
*** Bug 85722 has been marked as a duplicate of this bug. ***
Comment 72 Noname Nope 2004-07-24 00:38:37 UTC
I have this bug-behavior too, as HEAD cvs-23072004 (earlier cvs versions also affected).
As testcase I just load "about:", and konqueror show horizontal scrollbar. Pressing F5 (refresh) hides scrollbar.
Comment 73 Germain Garand 2004-08-04 19:16:58 UTC
CVS commit by ggarand: 


scope: main view scrollbars.

* khtmlview.cpp (resizeEvent): take care, in case we are shrinking,
  not to pass past the content limits yet. Next layout will determine
  if we positively need scrollbars or not.
    
* rendering/render_canvas.cpp (layout): remove scrollbar flickering turnarounds.
  Instead, account for a computed scrollbar hysteresis level when sizing the content.

CCMAIL: 84798-done@bugs.kde.org, 61730-done@bugs.kde.org


  M +9 -0      ChangeLog   1.274
  M +10 -0     khtmlview.cpp   1.660
  M +32 -29    rendering/render_canvas.cpp   1.150



Comment 74 jos poortvliet 2004-08-04 19:49:55 UTC
thanx!!!
Comment 75 Mikhail Capone 2004-08-04 21:36:20 UTC
Is it fixed? YES! Thanks a lot!
Comment 76 Wilbert Berendsen 2004-08-05 23:24:46 UTC
Great!!
Comment 77 Marius 2004-08-29 15:58:08 UTC
what about www.x.org?
Comment 78 Nathaniel W. Turner 2004-08-29 16:12:37 UTC
On Sunday 29 August 2004 09:58 am, Marius wrote:
> what about www.x.org?

Poorly-written CSS.  Look at this:  style="position: absolute; width: 100%; 
height: 100%; z-index: 1; left: 5px; top: -20px;"

100% wide + 5px = 5px wider than the window, no matter what.  Oops.

Not Konqueror's fault.

Comment 79 Timo Nentwig 2004-08-29 17:29:43 UTC
This is IMHO the only way to do it in CSS.
Comment 80 Stephan Kulow 2004-08-29 20:49:36 UTC
Am Sonntag 29 August 2004 16:13 schrieb Nathaniel W.Turner:
>
> 100% wide + 5px = 5px wider than the window, no matter what.  Oops.
>
> Not Konqueror's fault.
Yes, firefox shows the same -> webmaster@x.org

Comment 81 Mathias Homann 2004-10-16 18:12:01 UTC
is it the fault of the web "designer" on http://www.theregister.co.uk/odds/bofh/ as well? at least on my box its still present on that page...
Comment 82 J. Becker 2004-12-30 07:34:00 UTC
Another page where this occurs:
http://www.python.org/moin/ConfigParserShootout#head-c020ab1561c8bfaf6d65edc22a4b328ac6ef5648
Mozilla Firefox renders correctly.
Comment 83 johnelliottmartin 2005-09-25 23:28:17 UTC
This bug is marked as fixed, I have KDE version:  3.4.0 Level "b", and maybe it's been fixed in newer versions, but this page:

http://davidszondy.com/future/Flight/GEV.htm

is too wide in Konqueror and works just fine in FireFox.