Have GetDescBoxHeight() return value consistent with one given to SetDescBoxHeight(); In SetDescBoxHeight(), do not call RecalculatePositions() unless box height really changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1135,9 +1135,12 @@ void wxPropertyGridManager::SetDescBoxHeight( int ht, bool refresh )
|
|||||||
{
|
{
|
||||||
if ( m_windowStyle & wxPG_DESCRIPTION )
|
if ( m_windowStyle & wxPG_DESCRIPTION )
|
||||||
{
|
{
|
||||||
m_nextDescBoxSize = ht;
|
if ( ht != GetDescBoxHeight() )
|
||||||
if ( refresh )
|
{
|
||||||
RecalculatePositions(m_width, m_height);
|
m_nextDescBoxSize = ht;
|
||||||
|
if ( refresh )
|
||||||
|
RecalculatePositions(m_width, m_height);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1145,7 +1148,7 @@ void wxPropertyGridManager::SetDescBoxHeight( int ht, bool refresh )
|
|||||||
|
|
||||||
int wxPropertyGridManager::GetDescBoxHeight() const
|
int wxPropertyGridManager::GetDescBoxHeight() const
|
||||||
{
|
{
|
||||||
return GetClientSize().y - m_splitterY;
|
return GetClientSize().y - m_splitterY - m_splitterHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user