When the lyrics are longer than the available window, one should be able to scroll in it, but the scrollbar is missing.
*** Bug 222281 has been marked as a duplicate of this bug. ***
the only person who hasn't been able to reproduce it so far has been using qt4.5. i'm on qt4.6... if anyone else with qt4.6 could chime in if they also experience it, I would be grateful.
I'm seeing it here. Gentoo, qt-4.6.0, kde dev platform 4.4 rc1, amarok 2.2.2.
Created attachment 39808 [details] Example of lyrics getting cut off.
rick, this is a side effect of your commit 5358df6e1c0127f7785811aaf026b6d2ab4d1a6c . my guess is since you messed with the setMin/Max size of the proxywidgets, it's not getting set correctly anymore. could you take a look?
I've been trying to reproduce this problem, unsuccessfully. A vertical scrollbar always show up for long lyrics for me. The following were tested in all possible combinations: amarok v2.2.2 amarok git master (as of today) kde 4.5.3 qt v4.5.3 qt v4.6.0 qt git 4.6 branch (v4.6.0-1905-g1cb8e4b) The only thing not tested is kde 4.4rc1. Before I dig into the code, can someone confirm if this bug also happens for kde 4.5.3?
commit 124fd2f4f97562f7ea7ed12c282a5f70ecdf4466 Author: Rick W. Chen <stuffcorpse@archlinux.us> Date: Thu Jan 14 22:13:10 2010 +1300 Fix messed up scrollbar in lyrics applet under KDE 4.4 BUG: 222260 diff --git a/ChangeLog b/ChangeLog index 5897907..d7c6c79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,8 @@ VERSION 2.2.3 files which incorrectly have the same MusicBrainz unique identifier. BUGFIXES: + * Lyrics applet: Fixed scrollbar incorrectly displayed (and sometimes not + at all) for long lyrics under KDE 4.4. (BR 222260) * Fixed bug in Photos applet that made it break with translated versions of Amarok. Patch by Bellegarde Cédric <gnumdk@gmail.com>. (BR 222566) * Lyrics applet: Fixed saving and restoring font styles. (BR 222277) diff --git a/src/context/applets/lyrics/LyricsApplet.cpp b/src/context/applets/lyrics/LyricsApplet.cpp index 0529b4c..18f9323 100644 --- a/src/context/applets/lyrics/LyricsApplet.cpp +++ b/src/context/applets/lyrics/LyricsApplet.cpp @@ -34,6 +34,7 @@ #include <KTabWidget> #include <Plasma/IconWidget> +#include <Plasma/Containment> #include <QAction> #include <QGraphicsProxyWidget> @@ -542,7 +543,9 @@ void LyricsApplet::collapseToMin() // only show vertical scrollbar if there are lyrics and is needed browser->setVerticalScrollBarPolicy( m_hasLyrics ? Qt::ScrollBarAsNeeded : Qt::ScrollBarAlwaysOff ); - setCollapseHeight( contentHeight ); + const qreal containerHeight = containment()->size().height() - 1.0; + const qreal collapsedHeight = ( contentHeight > containerHeight ) ? containerHeight : contentHeight; + setCollapseHeight( collapsedHeight ); setCollapseOn(); }
Sorry, it's not completely fixed yet. Will fix soon.
Ok, should be fixed now in git. Please test.
Yes, works fine now :) Thanks for fixing!
*** Bug 223103 has been marked as a duplicate of this bug. ***
*** Bug 223203 has been marked as a duplicate of this bug. ***
*** Bug 223288 has been marked as a duplicate of this bug. ***
navigation bar appears but is not long enough...
*** Bug 223604 has been marked as a duplicate of this bug. ***
Is is possible to make a patch for this that applies to 2.2.2. My git-fu failed miserably at trying to cherry pick this.
(In reply to comment #16) > Is is possible to make a patch for this that applies to 2.2.2. My git-fu failed > miserably at trying to cherry pick this. You need to ask your distribution then, we don't issue patches between releases unless there is a security problem.
*** Bug 224434 has been marked as a duplicate of this bug. ***
*** Bug 224482 has been marked as a duplicate of this bug. ***
*** Bug 225561 has been marked as a duplicate of this bug. ***
*** Bug 225667 has been marked as a duplicate of this bug. ***
*** Bug 226196 has been marked as a duplicate of this bug. ***
*** Bug 226747 has been marked as a duplicate of this bug. ***
*** Bug 227499 has been marked as a duplicate of this bug. ***
*** Bug 227953 has been marked as a duplicate of this bug. ***
*** Bug 228922 has been marked as a duplicate of this bug. ***
*** Bug 229173 has been marked as a duplicate of this bug. ***
*** Bug 229353 has been marked as a duplicate of this bug. ***
*** Bug 230074 has been marked as a duplicate of this bug. ***