Commit 6413b119 authored by Olivier Teulière's avatar Olivier Teulière

* skins2/controls/ctrl_text.cpp: Fixed weird behaviours occurring when...

 * skins2/controls/ctrl_text.cpp: Fixed weird behaviours occurring when resizing a Text control with moving text
parent a0295860
......@@ -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
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment