Extend 'SetSplitterPosition' unit test in propgrid sample.
Added check if splitter position is retained when property grid is resized.
This commit is contained in:
@@ -1209,9 +1209,11 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
|||||||
m_topSizer->Add( m_pPropGridManager, wxSizerFlags(1).Expand());
|
m_topSizer->Add( m_pPropGridManager, wxSizerFlags(1).Expand());
|
||||||
FinalizePanel();
|
FinalizePanel();
|
||||||
|
|
||||||
wxSize sz = GetSize();
|
wxSize origSz = GetSize();
|
||||||
wxSize origSz = sz;
|
|
||||||
|
wxSize sz = origSz;
|
||||||
sz.IncBy(5, 5);
|
sz.IncBy(5, 5);
|
||||||
|
SetSize(sz);
|
||||||
|
|
||||||
if ( pgman->GetGrid()->GetSplitterPosition() != trySplitterPos )
|
if ( pgman->GetGrid()->GetSplitterPosition() != trySplitterPos )
|
||||||
RT_FAILURE_MSG(wxString::Format(wxT("Splitter position was %i (should have been %i)"),(int)pgman->GetGrid()->GetSplitterPosition(),trySplitterPos).c_str());
|
RT_FAILURE_MSG(wxString::Format(wxT("Splitter position was %i (should have been %i)"),(int)pgman->GetGrid()->GetSplitterPosition(),trySplitterPos).c_str());
|
||||||
|
Reference in New Issue
Block a user