Bug 135907

Summary: lyrics tab is not scrolled to the origin when changed
Product: [Applications] amarok Reporter: Thomas Schildknecht <danakil.kde>
Component: Context ViewAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.4.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Schildknecht 2006-10-18 15:10:30 UTC
Version:           1.4.3 (using KDE 3.5.5, Kubuntu (dapper) 4:3.5.5-0ubuntu1)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-27-386

when a song is played and it's lyrics showed, the scrollbar is not put back on the top when the next track is played (and new lyrics are showed)
Comment 1 Alexandre Oliveira 2006-10-24 01:37:21 UTC
SVN commit 598567 by aoliveira:

when the track (and thus the lyrics) changes, reset scrollbar position of lyrics tab to the top
BUG: 135907


 M  +2 -0      contextbrowser.cpp  


--- trunk/extragear/multimedia/amarok/src/contextbrowser.cpp #598566:598567
@@ -3096,6 +3096,8 @@
 
 
     m_lyricsPage->set( m_HTMLSource );
+    //Reset scroll
+    m_lyricsPage->view()->setContentsPos(0, 0);
     saveHtmlData(); // Send html code to file
 
     m_lyricsToolBar->getButton( LYRICS_BROWSER )->setEnabled( !m_lyricCurrentUrl.isEmpty() );