Version: 4.0 (using KDE 3.1.0) Installed from: compiled sources Compiler: gcc version 2.95.3 20010315 (release) OS: Linux (i686) release 2.4.18 When you scroll HTML page while Konqueror is still loading it, it often takes about a second before page is redrawn. Rivo
Dammit yes! This bug is really annoying, especially for slow internet connections. It's interesting to know that this bug has existed since KDE 3.1, I always thought it only existed since KDE 3.2. It definitely didn't exist for KDE 3.0.
CVS commit by ggarand: make sure we are layouted if the view is scrolled while we are still loading BUG: 51473 M +5 -0 ChangeLog 1.326 M +9 -0 khtmlview.cpp 1.671 --- kdelibs/khtml/ChangeLog #1.325:1.326 @@ -1,2 +1,7 @@ +2004-11-03 Germain Garand <germain@ebooksfrance.com> + + * khtmlview.cpp (slotScrollBarMoved): make sure we are layouted before + scrolling if we are still loading (#51473) + 2004-11-02 Stephan Kulow <coolo@kde.org> --- kdelibs/khtml/khtmlview.cpp #1.670:1.671 @@ -2676,4 +2676,13 @@ void KHTMLView::focusOutEvent( QFocusEve void KHTMLView::slotScrollBarMoved() { + if ( !d->firstRelayout && !d->complete && m_part->xmlDocImpl() && + d->layoutSchedulingEnabled) { + // contents scroll while we are not complete: we need to check our layout *now* + khtml::RenderCanvas* root = static_cast<khtml::RenderCanvas *>( m_part->xmlDocImpl()->renderer() ); + if (root && root->needsLayout()) { + unscheduleRelayout(); + root->layout(); + } + } if (!d->scrollingSelf) { d->scrollBarMoved = true;
You need to log in before you can comment on or make changes to this bug.