]> git.sesse.net Git - vlc/commitdiff
* skins2/controls/ctrl_text.cpp: Fixed weird behaviours occurring when resizing...
authorOlivier Teulière <ipkiss@videolan.org>
Mon, 12 Feb 2007 20:17:49 +0000 (20:17 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Mon, 12 Feb 2007 20:17:49 +0000 (20:17 +0000)
modules/gui/skins2/controls/ctrl_text.cpp

index df0e86508a33499257183feb3326c59fca6a2497..09e79c332661b63095e5f7fe91a1fe6015b91384 100644 (file)
@@ -288,6 +288,11 @@ void CtrlText::onPositionChange()
         if( m_pImg->getWidth() < getPosition()->getWidth() )
         {
             m_pCurrImg = m_pImg;
+
+            // When the control becomes wide enough for the text to display,
+            // make sure to stop any scrolling effect
+            m_pTimer->stop();
+            m_xPos = 0;
         }
         else
         {