Set window postion explicitly in clipping box test for wxClientDC
Set window position explictly to (0, 0) to avoid unwanted clipping if defualt position selected by the system would place it (partially) outside of the parent window.
This commit is contained in:
@@ -3657,7 +3657,7 @@ TEST_CASE("ClippingBoxTestCase::wxClientDC", "[clip][dc][clientdc]")
|
|||||||
// and the window cannot be resized - see wxTopLevelWindowBase::Layout().
|
// and the window cannot be resized - see wxTopLevelWindowBase::Layout().
|
||||||
wxScopedPtr<wxWindow> w0(new wxWindow(wxTheApp->GetTopWindow(), wxID_ANY));
|
wxScopedPtr<wxWindow> w0(new wxWindow(wxTheApp->GetTopWindow(), wxID_ANY));
|
||||||
#endif // wxGTK 2
|
#endif // wxGTK 2
|
||||||
wxScopedPtr<wxWindow> win(new wxWindow(wxTheApp->GetTopWindow(), wxID_ANY));
|
wxScopedPtr<wxWindow> win(new wxWindow(wxTheApp->GetTopWindow(), wxID_ANY, wxPoint(0, 0)));
|
||||||
|
|
||||||
win->SetClientSize(s_dcSize);
|
win->SetClientSize(s_dcSize);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user