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,7 +337,8 @@ void Splitter::limitPos()
m_pos = MID(0, m_pos, 100);
break;
case ByPixel:
m_pos = MID(0, m_pos, getBounds().w);
if (isVisible())
m_pos = MID(0, m_pos, getBounds().w);
break;
}
}
@ -347,7 +348,8 @@ void Splitter::limitPos()
m_pos = MID(0, m_pos, 100);
break;
case ByPixel:
m_pos = MID(0, m_pos, getBounds().h);
if (isVisible())
m_pos = MID(0, m_pos, getBounds().h);
break;
}
}