Version: 1.0-beta2 (using KDE KDE 3.2.1) Installed from: SuSE RPMs Compiler: gcc version 3.3.3 (SuSE Linux) OS: Linux To reproduce: 1. Switch to Combined View (Settings -> Combined View) 2. Select a feed where the article text is longer than the article frame. 3. Scroll down some. 4. Select another feed where the article text is longer than the article frame. Expected Result: The scroll bar is reset to the top. Actual Result: It retains its old scroll value.
Scrollbars are not reset in all modes, need to drop their values on every article change.
CVS commit by sashmit: - Scroll to top upon article change in combined view - cleanup CCMAIL: 83187-done@bugs.kde.org M +3 -5 articleviewer.cpp 1.38 --- kdenonbeta/akregator/src/articleviewer.cpp #1.37:1.38 @@ -189,4 +189,5 @@ QString ArticleViewer::formatArticle(Fee void ArticleViewer::beginWriting() { + view()->setContentsPos(0,0); begin( KURL( "file:"+KGlobal::dirs()->saveLocation("cache", "akregator/Media/") ) ); write(m_htmlHead); @@ -206,6 +207,5 @@ void ArticleViewer::show(Feed *f, bool w if (writeHeaders) { - begin( KURL( "file:"+KGlobal::dirs()->saveLocation("cache", "akregator/Media/") ) ); - write(m_htmlHead); + beginWriting(); } @@ -221,7 +221,5 @@ void ArticleViewer::show(Feed *f, bool w if (writeHeaders) { - m_currentText = text + "</body></html>"; - write("</body></html>"); - end(); + endWriting(); } else