Bug 64924 - [test case] Flashing scrollbars all around
Summary: [test case] Flashing scrollbars all around
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml renderer (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR grave
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 62148 68268 68568 69613 71717 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-25 14:09 UTC by András Manţia
Modified: 2004-01-18 13:58 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
testcase for flashing scrollbars (761 bytes, text/html)
2003-12-14 13:32 UTC, Christian Boltz
Details
another testcase (216 bytes, text/html)
2003-12-29 20:57 UTC, Vedran Ljubovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description András Manţia 2003-09-25 14:09:47 UTC
Version:           3.1.92 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          g++ 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux

If you visit the http://nordea.fi/e you will notice that the horizontal
and vertical scrollbars are flashing while the page loads. After it's
loaded, the scrollbars are not visible anymore. This is present since a
week or two, but surely I noticed after I came back from Nove Hrady.

Andras
Comment 1 George Staikos 2003-09-25 18:32:23 UTC
Subject: Re:  New: Flashing scrollbars on http://nordea.fi/e

On Thursday 25 September 2003 08:09, Mantia Andras wrote:
> If you visit the http://nordea.fi/e you will notice that the horizontal
> and vertical scrollbars are flashing while the page loads. After it's
> loaded, the scrollbars are not visible anymore. This is present since a
> week or two, but surely I noticed after I came back from Nove Hrady.

  Also happens on SMC router configuration pages.

Comment 2 Tommi Tervo 2003-11-07 17:31:41 UTC
Better testcase:
<URL: http://www.helsinginsanomat.fi/teksti/tuoreet/artikkeli/1066914293853>

It won't even refresh the page content, you'll have to "paint" whole page.

(if missing, open http://www.helsinginsanomat.fi/teksti/tuoreet/aikajarjestys/
and choose on of links)
Comment 3 rzei 2003-11-08 14:41:02 UTC
http://bitconjurer.org/BitTorrent/ same kind of problems here. Scrollbars seem to flash all the time, after being loaded too.
http://www.vcdquality.com has those scrollbars flickering while loading also, but not after loading.

About konqueror shows version 3.1.93, CVS >= 20031028.
Comment 4 Tommi Tervo 2003-11-23 19:10:06 UTC
*** Bug 68568 has been marked as a duplicate of this bug. ***
Comment 5 Christian Boltz 2003-12-14 13:31:21 UTC
This problem appears when using the CSS formatting
    position:absolute;
    height:100%;
    overflow:auto;
on a <div>.

It seems that Konqueror can't decide whether scrollbars are needed
or not, so it shows them, hides them, shows them again, hides them
again, ... - the scrollbars are "flashing" and you can't use the
browser window anymore, it eats up all CPU resources.

I could reduce the problem to a little test file which is appended
in this bug report. Note: the red border is only used to show the
dimensions of the <div>, without the border the error also appears.
Comment 6 Christian Boltz 2003-12-14 13:32:53 UTC
Created attachment 3697 [details]
testcase for flashing scrollbars
Comment 7 Phil 2003-12-22 12:16:50 UTC
I experience the same problemen at http://www.mauritius-news.co.uk/
But when you minimize this window to a smaller one (problem still exists)and the maximize it again , the problem is gone ...
Comment 8 Vedran Ljubovic 2003-12-29 20:57:39 UTC
Created attachment 3878 [details]
another testcase

Hello Christian, I have another minimal testcase for blinking scrollbars but it
looks nothing like what you have.
Comment 9 Tommi Tervo 2004-01-03 10:01:03 UTC
*** Bug 71717 has been marked as a duplicate of this bug. ***
Comment 10 Samuel Edlmeier 2004-01-08 20:55:49 UTC
Same Problem at <a href="http://www.kulturvernetzung.at/">www.kulturvernetzung.at</a>. 
Comment 11 Stephan Kulow 2004-01-12 17:39:57 UTC
*** Bug 69613 has been marked as a duplicate of this bug. ***
Comment 12 Stephan Kulow 2004-01-12 17:41:47 UTC
*** Bug 62148 has been marked as a duplicate of this bug. ***
Comment 13 Stephan Kulow 2004-01-12 17:43:32 UTC
*** Bug 68268 has been marked as a duplicate of this bug. ***
Comment 14 Stephan Kulow 2004-01-12 17:58:43 UTC
I should add that most duplicates contain test cases on their own
Comment 15 Germain Garand 2004-01-13 08:46:02 UTC
CVS commit by ggarand: 

force scrollbar visibility status while layouting
to avoid endless cycles

endorsed by Dirk

CCMAIL: 69613-done@bugs.kde.org


  M +6 -0      ChangeLog   1.155
  M +16 -0     rendering/render_canvas.cpp   1.144


--- kdelibs/khtml/ChangeLog  #1.154:1.155
@@ -1,2 +1,8 @@
+2004-01-13  Germain Garand  <germain@ebooksfrance.org>
+
+        * rendering/render_canvas.cpp (layout):
+        force scrollbar visibility status while layouting
+        to avoid endless cycles (#69613)
+
 2004-01-13  Dirk Mueller  <mueller@kde.org>
 

--- kdelibs/khtml/rendering/render_canvas.cpp  #1.143:1.144
@@ -152,4 +152,18 @@ void RenderCanvas::layout()
     }
 
+    KHTMLView::ScrollBarMode vsmode = m_view->vScrollBarMode();
+    KHTMLView::ScrollBarMode hsmode = m_view->hScrollBarMode();
+    
+    if (m_view->verticalScrollBar()->isVisible())
+        m_view->setVScrollBarMode(KHTMLView::AlwaysOn);
+    else
+        m_view->setVScrollBarMode(KHTMLView::AlwaysOff);
+
+    if (m_view->horizontalScrollBar()->isVisible())
+        m_view->setHScrollBarMode(KHTMLView::AlwaysOn);
+    else
+        m_view->setHScrollBarMode(KHTMLView::AlwaysOff);
+
+
     RenderBlock::layout();
 
@@ -177,4 +191,6 @@ void RenderCanvas::layout()
     layer()->resize( kMax( docW,int( m_width ) ), kMax( docH,m_height ) );
 
+    m_view->setVScrollBarMode(vsmode);
+    m_view->setHScrollBarMode(hsmode);
 
     setLayouted();
Comment 16 Helio Chissini de Castro 2004-01-13 12:00:56 UTC
Subject: Re:  [test case] Flashing scrollbars all around

Yay :-)

On Tuesday 13 January 2004 05:46, Germain Garand wrote:
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
> http://bugs.kde.org/show_bug.cgi?id=64924
> germain@ebooksfrance.com changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|NEW                         |RESOLVED
>          Resolution|                            |FIXED
>
>
>
> ------- Additional Comments From germain@ebooksfrance.com  2004-01-13 08:46
> ------- CVS commit by ggarand:
>
> force scrollbar visibility status while layouting
> to avoid endless cycles
>
> endorsed by Dirk
>
> CCMAIL: 69613-done@bugs.kde.org
>
>
>   M +6 -0      ChangeLog   1.155
>   M +16 -0     rendering/render_canvas.cpp   1.144
>
>
> --- kdelibs/khtml/ChangeLog  #1.154:1.155
> @@ -1,2 +1,8 @@
> +2004-01-13  Germain Garand  <germain@ebooksfrance.org>
> +
> +        * rendering/render_canvas.cpp (layout):
> +        force scrollbar visibility status while layouting
> +        to avoid endless cycles (#69613)
> +
>  2004-01-13  Dirk Mueller  <mueller@kde.org>
>
>
> --- kdelibs/khtml/rendering/render_canvas.cpp  #1.143:1.144
> @@ -152,4 +152,18 @@ void RenderCanvas::layout()
>      }
>
> +    KHTMLView::ScrollBarMode vsmode = m_view->vScrollBarMode();
> +    KHTMLView::ScrollBarMode hsmode = m_view->hScrollBarMode();
> +
> +    if (m_view->verticalScrollBar()->isVisible())
> +        m_view->setVScrollBarMode(KHTMLView::AlwaysOn);
> +    else
> +        m_view->setVScrollBarMode(KHTMLView::AlwaysOff);
> +
> +    if (m_view->horizontalScrollBar()->isVisible())
> +        m_view->setHScrollBarMode(KHTMLView::AlwaysOn);
> +    else
> +        m_view->setHScrollBarMode(KHTMLView::AlwaysOff);
> +
> +
>      RenderBlock::layout();
>
> @@ -177,4 +191,6 @@ void RenderCanvas::layout()
>      layer()->resize( kMax( docW,int( m_width ) ), kMax( docH,m_height ) );
>
> +    m_view->setVScrollBarMode(vsmode);
> +    m_view->setHScrollBarMode(hsmode);
>
>      setLayouted();

Comment 17 Carsten Schlipf 2004-01-18 13:58:48 UTC
This seems to occur with any element with a height or width of 100%. Example:

http://hosting.punboy.com/

I believe the following code causes the error:
<hr color=#003d72 style='position:absolute;top:80' width=99%>

Also I was able to reproduce this with a table with a height and width of 100%.