Fix limiting splitter position when it's hidden (with no bounds)

This commit is contained in:
David Capello 2015-05-07 15:59:29 -03:00
parent 97609b6504
commit b74727489d

View File

@ -337,6 +337,7 @@ void Splitter::limitPos()
m_pos = MID(0, m_pos, 100);
break;
case ByPixel:
if (isVisible())
m_pos = MID(0, m_pos, getBounds().w);
break;
}
@ -347,6 +348,7 @@ void Splitter::limitPos()
m_pos = MID(0, m_pos, 100);
break;
case ByPixel:
if (isVisible())
m_pos = MID(0, m_pos, getBounds().h);
break;
}