From 9b7757c44db95514cdfdf96de731410bb31750b8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 Nov 2018 17:49:12 +0100 Subject: [PATCH] Ensure that wxDataViewMainWindow has correct size in the test Replace a redundant (because the same size was already specified in the ctor) SetSize() call with a Layout() call which resizes wxDataViewMainWindow to fit the parent control size when using the generic implementation. This is important for any tests dealing with the control geometry, i.e. calling GetItemRect() or HitTest(). --- tests/controls/dataviewctrltest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/controls/dataviewctrltest.cpp b/tests/controls/dataviewctrltest.cpp index 6d0d728890..720fdce938 100644 --- a/tests/controls/dataviewctrltest.cpp +++ b/tests/controls/dataviewctrltest.cpp @@ -83,7 +83,7 @@ DataViewCtrlTestCase::DataViewCtrlTestCase(long style) m_grandchild = m_dvc->AppendItem(m_child1, "grandchild"); m_child2 = m_dvc->AppendItem(m_root, "child2"); - m_dvc->SetSize(400, 200); + m_dvc->Layout(); m_dvc->Expand(m_root); m_dvc->Refresh(); m_dvc->Update();